When compiling my project with clang++, the path to the source files is apparently not included in the object code. This means that gdb is unable to find source files to display code with. For specific instances, I can use gdb's directory
command to add a directory, but my project has a lot of source directories and this gets annoying very quickly.
When I switch my configuration to use g++, gdb simply finds all my source files.
This functionality worked clang++ 2.9 on Snow Leopard, but doesn't work with clang++ 3.1 on Lion. I have XCode 4.3.2.
Is there a clang option that forces full paths to be used in object files? Might something else be wrong with my configuration?
-d
? – Quartziferous-d
40 times. – Cabalism