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 19:32:25 -0700
Ah, yes. I have another bug about this - notably also in a C++ app.
Apparently there is some C++ construct that causes dead-code stripping
to maul the debug info. Please file a bug about this so we can get a
sense of how serious it is. If you have code you can send us that
shows this happening, then that would be even better.
You are right, you probably aren't going to get very far debugging like
this - in the case I saw the debug info had a couple of key elements
missing that really confused gdb.
Jim
On Aug 11, 2004, at 5:15 PM, Brad Oliver wrote:
On Aug 11, 2004, at 3:25 PM, Jim Ingham wrote:
You have to also make sure that whatever product you are building
here is not getting stripped somewhere down the line. There is a
setting in the UI (Produce Unstripped Product) that controls this.
I have a solution of sorts to my problems.
It seems the culprit is dead-code stripping. With that on, I was
losing a lot of source info. I noticed in the project settings that
dead-code stripping requires -g-full, so I make that option explicit.
Crazy that XCode doesn't adjust itself to -g-full when dead-code
stripping is on for you, but at least now I know.
Even so, that didn't work. When I ran my app with -g-full and
dead-code stripping on, gdb fired an assertion, indicated that future
debugging "may not work reliably" and then promptly quit.
After that, I disabled dead-code stripping altogether and bit the
bullet, resolving all the stranded code problems by hand. After
rebuilding this time, I once again had full source in the debugger.
So it seems to me that at this point, dead-code stripping is probably
to be avoided for debug/development build styles.
--
Brad Oliver
email@hidden
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham
email@hidden
Developer Tools - gdb
_______________________________________________
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.