Re: [SOLVED] Debugging ARC app on Snow Leopard
Re: [SOLVED] Debugging ARC app on Snow Leopard
- Subject: Re: [SOLVED] Debugging ARC app on Snow Leopard
- From: Jonas Maebe <email@hidden>
- Date: Tue, 29 Nov 2011 14:49:09 +0100
On 29 Nov 2011, at 00:49, Dave Fernandes wrote:
On 2011-11-28, at 4:04 PM, Jonas Maebe wrote:
If you use dSYM bundles, that should not be an issue (then the
object files are no longer required for debugging).
I tried changing the target's Debug Information Format to "DWARF
with dSYM File". I then get a dSYM bundle created alongside the
application bundle. And when I debug on Snow Leopard, the debugger
shows my method names in black rather than gray, and it does not
complain about being unable to find the object files. However, it
still only shows disassembly with no source code until I "set
pathname-substitutions" as Sean McBride suggested.
Is there some other project setting I need to change? Presumably the
dSYM file contains a symbol map, but not actual source code.
That's correct.
So some setting must provide the location of the source code, no?
I don't know how to change that in Xcode. In gdb, you would simply add
the directories containing the source code to the gdb source file
search path using the "directory" command. I would expect that if you
add the source code of your program to the Xcode project, that Xcode
would pass those directories also to gdb's search path.
Or is this path hard coded in the dSYM file.
I guess it depends on whether the compiler was passed absolute or
relative paths to the source code at compile time (DWARF supports
both: you can perfectly encode a default "base" directory in DWARF and
then store all paths names relative to that base directory, so that
it's easy to move things around later). I believe Xcode may pass
absolute paths, so in that case the full path may be encoded in the
object files, resulting in your problem. I don't have time to check it
right now.
Jonas
_______________________________________________
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