• 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: DWARF format and stripping (addresses to symbols + line numbers)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DWARF format and stripping (addresses to symbols + line numbers)


  • Subject: Re: DWARF format and stripping (addresses to symbols + line numbers)
  • From: Jim Ingham <email@hidden>
  • Date: Fri, 2 Jun 2006 14:05:02 -0700

Do you use the "Link only Essential Symbols" option when you build with stabs? That leaves most of the stabs debug information in the .o files (including the line tables) and carries over only what is necessary for the debugger to figure out what the linker did. We didn't teach atos to find the line tables in the .o files for stabs, however, so atos won't work in this case.

Jim


On Jun 2, 2006, at 1:52 PM, Greg Hurrell wrote:

El 02/06/2006, a las 19:32, Jim Ingham escribió:

The way to tell for sure if a stabs built binary still has debug information is something like:

nm -ap <Binary> | grep "SO "

If you see lots of file names that you recognize, you've got debug information. At that point, I have no idea why you aren't getting line number info. If you don't see this, then somehow it's getting stripped.

Yes, I see lots of filenames that I recognize...

$ nm -ap App_i386_unstripped | grep "SO " | wc -l
      75

It seems clear that the debug info (including line numbers) is present because gdb can see it. The weird part is why atos can't see it.

Cheers,
Greg


_______________________________________________ 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
  • Follow-Ups:
    • Re: DWARF format and stripping (addresses to symbols + line numbers)
      • From: Greg Hurrell <email@hidden>
References: 
 >Re: DWARF format and stripping (addresses to symbols + line numbers) (From: Greg Hurrell <email@hidden>)
 >Re: DWARF format and stripping (addresses to symbols + line numbers) (From: "Shawn Erickson" <email@hidden>)
 >Re: DWARF format and stripping (addresses to symbols + line numbers) (From: Greg Hurrell <email@hidden>)
 >Re: DWARF format and stripping (addresses to symbols + line numbers) (From: Jim Ingham <email@hidden>)
 >Re: DWARF format and stripping (addresses to symbols + line numbers) (From: Greg Hurrell <email@hidden>)

  • Prev by Date: (SOLVED-ish) Longshot: Dramatic CPU usage after installing XCode 2.3?
  • Next by Date: Re: Longshot: Dramatic CPU usage after installing XCode 2.3?
  • Previous by thread: Re: DWARF format and stripping (addresses to symbols + line numbers)
  • Next by thread: Re: DWARF format and stripping (addresses to symbols + line numbers)
  • Index(es):
    • Date
    • Thread