Re: XCode 1.5 not showing source listing in debugger
Re: XCode 1.5 not showing source listing in debugger
- Subject: Re: XCode 1.5 not showing source listing in debugger
- From: Jim Ingham <email@hidden>
- Date: Wed, 11 Aug 2004 14:39:41 -0700
The SO entries come in groups of three (except for start.s - which is a
special case) like:
002a0884 - 01 0000 SO
/Users/jingham/Work/gdb-sources/build/libiberty/
002a0884 - 01 0000 SO ../../gdb/src/libiberty/xexit.c
002a08d0 - 01 0000 SO
The first is the directory the compiler was invoked from, the second
the path from there to the source file, and the third - with no name -
marks the end of that compilation unit. So having SO stabs with no
source name is usual.
If the file name is not listed in the SO listings, that means that
those source files got rebuilt without debug info.
One common error is to build everything with the Development build
style, then accidentally switch to the Deployment build style, and
rebuild a couple of source files. This will lead to MOST of your
sources being built with debug symbols, but these few not.
Make sure that you really are using the Development build style (and
that you haven't turned off "Generate Debug Symbols" in the Development
build style). Then touch the source files in question & rebuild. Open
the Detailed build log, and look at the actual compile lines for that
file (the ones that invoke c++ or cc) and make sure they are passing
"-g" somewhere on the build line.
That's about as far as my knowledge goes, if this doesn't help get them
built with debug info, somebody who knows more about the build system
will have to help out.
Jim
On Aug 11, 2004, at 2:25 PM, Brad Oliver wrote:
On Aug 11, 2004, at 12:54 PM, Jim Ingham wrote:
If you see a record with the filename in question, then you know that
there is debug info for that file. Then we can try to figure out why
the debugger isn't finding it.
If there isn't then somehow that file got built without debug info,
and we can try to figure out how that might have happened...
Thanks, Jim. I did what you suggested and discovered that the files in
question are not listed in /tmp/source-stabs.txt
There are also a bunch of lines in that txt file that don't list
equivalent source files. I'm not sure if that tells you anything
useful.
--
Brad Oliver
email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.