Re: Debugging memory corruption? (C++)
Re: Debugging memory corruption? (C++)
- Subject: Re: Debugging memory corruption? (C++)
- From: Jens Alfke <email@hidden>
- Date: Mon, 2 Nov 2009 17:15:56 -0800
On Nov 2, 2009, at 4:01 PM, Jean-Denis Muys wrote:
Now to my second question, I found otool, but its symbols are the
mangled C++ proc names.
Next try is to add the -S option to gcc, but I couldn't find a way
to do that in XCode. How can I do that?
The easiest way to get disassembly in Xcode is Build > Show Assembly
Code.
This will have mangled C++ names, and tons of useless labels, so I
usually copy the output to the clipboard and then run the following
script in a shell:
pbpaste | grep -v '^L[A-Z]' | c++filt | mate
(The 'mate' command opens the output in TextMate. If you don't have
that app, you can just redirect it to a file and then open that in
Xcode.)
—Jens _______________________________________________
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