News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Debugger search directories

Started by pit, July 01, 2009, 12:40:34 PM

Previous topic - Next topic

pit

hello
i'm debugging console executable (debian, codeblocks svn 5671)
it is interacting with a library for which i made a debug version and load it when debugging by setting LD_LIBRARY_PATH pointing to the place where debug version exists. It's all good, it loads and when stopping at breakpoint i saw source file names in call stack but when clicking corresponding line i get a message in debugger window:

Cannot open file: /home/pit/src/fvwm-gnomemenu/menu-monitor.c


i.e. codeblocks tries to search source file in main project folder(/home/pit/src/fvwm-gnomemenu/), while the sources of library is realy in another

When opening this file and setting breakpoint manually - all works ok, but it' very unconvenient when it is not possible to use call stack window

i'm nor realy sure, is it right, but i tried to include library sources folder in Debugger search dirs, but is doesn't help

julien

I have exactly the same problem.

I'm trying to debug a library build somewhere else by somebody else (i.e. with different source file paths). I adjusted gdb's substitute-path and C::B finds the source files if single steppping into a library function.
However it doesn't find the source when clicking in the stack trace.

It appears like C::B is trying to open the source file with the absolute name, not honoring gdbs substitute-path.
But why does it find the source correctly when single stepping?