Re: Does "Additional Directories to Find Source Files" work?
Re: Does "Additional Directories to Find Source Files" work?
- Subject: Re: Does "Additional Directories to Find Source Files" work?
- From: Jim Ingham <email@hidden>
- Date: Wed, 17 Aug 2005 10:09:15 -0700
Setting breakpoints uses the debug information and doesn't need the
actual source files to do its job. So it's unaffected both by gdb's
dir command, and anything else Xcode might do along these lines.
Xcode doesn't use gdb to get file contents, it does that itself. So
it wouldn't need to seed the directories in the Executables pane into
gdb's "dir" path. It gets a filename and directory from gdb, and if
the file isn't in the directory gdb says it should be, then Xcode
uses the other path elements to look for the file on its side.
This worked in the simple test case I tried out. If you have a case
where it's not working, please file a bug.
Jim
On Aug 17, 2005, at 9:14 AM, Daniel Jalkut wrote:
I take it back, sorta. It does seem to be finding my breakpoints
now, despite the directory not showing up in "dir"'s result. I
guess it uses a different mechanism?
Daniel
On Aug 17, 2005, at 11:38 AM, Daniel Jalkut wrote:
I'm linking to a static library that is built with debug symbols,
so I want gdb to recognize its source dir when I'm debugging my tool.
I discovered the "Additional Directories..." configuration in the
Debug pane of the Executable inspector. Perfect! But when I set a
path (full POSIX) in this table and debug the executable, it
doesn't seem to help. I even turned off the "auto run" feature so
I could inspect gdb. After setting a full path to a local
directory on my disk, I start the debug session and type "dir"
from the gdb console:
(gdb) dir
Source directories searched: $cdir:$cwd
No sign of my custom path. Is this feature supposed to work? Are
there some gotchas I should know about?
Thanks!
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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