tags:

views:

47

answers:

1

I know about specifying source locations using gdb. But I am wondering if there's someplace in my Xcode project or other settings where I can specify source directories such that gdb would use whatever I specify to look for sources. If I could put them in Xcode settings I think it would help me save them in a central place.

A: 

You shouldn't need to - if the sources are part of your project and are used to build your executable, and so long as you are generating debug symbols, then gdb should be able to find the source files. The only time I can think of that this might fail is if you build on one machine and then try to debug on another, where the paths to the source files are different.

Paul R
Paul - That's my situation: the paths are different.
Chris Markle
Can't you just rebuild on the target machine ? Or does that take too long ?
Paul R