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: GDB frustration



On Jan 19, 2006, at 3:28 PM, David Litwin wrote:

Now even that is failing me.  I’ve stepped into a cast operator and can’t get Xcode to show me any disassembly.  The GDB console puts up the message:

Unable to disassemble Foo::operator Bar.

When I type “disassem $pc” I get:

No function contains specified address

 

It would be wonderful if the debugger could help me walk through my code, but failing that could it at least show me what instruction I am about to perform by typing “stepi”?  I would think the disassem command would disassemble the memory passed to it, but it seems to just look within the loaded code for it…

This will show you the next instruction:
x /i $pc
Or, to display that at every prompt:
display /i $pc

Hope this helps,
Eric

 _______________________________________________
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: 
 >GDB frustration (From: "David Litwin" <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.