• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging memory corruption? (C++)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Debugging memory corruption? (C++) (From: Jean-Denis Muys <email@hidden>)
 >Re: Debugging memory corruption? (C++) (From: Dave Carrigan <email@hidden>)
 >Re: Debugging memory corruption? (C++) (From: Jean-Denis Muys <email@hidden>)
 >Re: Debugging memory corruption? (C++) (From: Jens Alfke <email@hidden>)
 >Re: Debugging memory corruption? (C++) (From: Jean-Denis Muys <email@hidden>)

  • Prev by Date: Re: Debugging memory corruption? (C++)
  • Next by Date: Superclass ivars "out of scope" xcode 3.2.1
  • Previous by thread: Re: Debugging memory corruption? (C++)
  • Next by thread: Re: Xcode Font sizes
  • Index(es):
    • Date
    • Thread