Bug #11208 2007-05-29 09:45

jazzer

doesn't jump to a file/line from call stack

As I understand, C::B calls a command ('where' in case of gdb), parses the debugger's output and populates the 'Call stack' window. Please correct me if I'm wrong.

In this window in the 'File' column I see just file.cpp (this is what the debugger returns on 'where'), not $(project_base)/dir1/dir2/dir3/file.cpp.

If I send a command 'list' to the debugger, it shows me the source (i.e. the debugger 'sees' the source file).

But when I double-click the line in the 'Call stack' window, C::B doesn't send me to the file & line, but prints the following message to the 'Debugger' window instead:

"Cannot open file: $(project_base)\file.cpp"

Any chance to get it working?

Is it a bug in C::B or I'm doing anything wrong? To me, looks like a bug.

P.S. I even added the path $(project_base)/dir1/dir2/dir3/ to the project's settings 'C++ parse settings' and 'Debugging settings' - no effect.

Looks like cbProject::GetFileByFilename needs to be changed.

Category
Debugger
Group
 
Status
Open
Close date
 
Assigned to
 
jazzer 2007-05-30 02:09

it's "svn build rev 3988 (2007-05-22 16:45:47) gcc 3.4.5 Windows/unicode" (I took the installer from the site)