Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging on Intel macs



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: debugging on Intel macs (From: Aurélien Hugelé <email@hidden>)
 >Re: debugging on Intel macs (From: Eric Albert <email@hidden>)
 >Re: debugging on Intel macs (From: Aurélien Hugelé <email@hidden>)
 >Re: debugging on Intel macs (From: Eric Albert <email@hidden>)
 >Re: debugging on Intel macs (From: Aurélien Hugelé <email@hidden>)
 >Re: debugging on Intel macs (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.