On Apr 7, 2006, at 10:57 PM, Aurélien Hugelé wrote:
Thanks albert, trying to play with GDB and using your
explanations, i've succeeded to get what i want!
just a last question, is it possible to create some gdb macros ?
for exemple instead of typing
gdb) po *(int *) ($esp + 8)
to get self
i would just have to type po SELF or something like that.
Of course i want the macros to be saved and usable in all my
projects...
do not bother to read the doc for me if you do not know how to do
this immediatly ;-)
See http://developer.apple.com/documentation/developertools/gdb/gdb/
gdb_21.html#SEC203
define commandname
Define a command named commandname. If there is already a command
by that name, you are asked to confirm that you want to redefine
it. The definition of the command is made up of other GDB command
lines, which are given following the define command. The end of
these commands is marked by a line containing end.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden
This email sent to email@hidden