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.
views:
47answers:
1
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
2010-03-25 23:47:21
Paul - That's my situation: the paths are different.
Chris Markle
2010-03-25 23:52:58
Can't you just rebuild on the target machine ? Or does that take too long ?
Paul R
2010-03-26 06:51:45