Re: debugging on Intel macs
Re: debugging on Intel macs
- Subject: Re: debugging on Intel macs
- From: Jim Ingham <email@hidden>
- Date: Tue, 11 Apr 2006 09:53:51 -0700
And the final bit of this, if you put these defines in a file
called .gdbinit in your home directory, then they will be available
in all your gdb sessions.
Jim
On Apr 7, 2006, at 11:42 PM, Chris Espinosa wrote:
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:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden