Bug #8957 2006-09-30 15:25

bnilsson

Mac OSX: Source file not found if spaces in path

Dual 2.3GHz PowrPC G5

Mac OSX 10.4.8

wxWidgets 2.6.3

codeblocks rev 3001

The debugger cannot find the sourcefiles, hence beakpoints does not work.

Debugging a project from console template:

#include <stdio.h>

#include <stdlib.h>

int main()

{

char message[255]="Hello world!\n";

printf("%s",message);

return 0;

}

Building to ensure sources are up-to-date

Build succeeded

Selecting target: Debug

Adding source dir: /Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/

Adding source dir: /Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/

Adding file: ./CBconsole

Starting debugger: done

Registered new type: wxString

Registered new type: STL String

Registered new type: STL Vector

Setting breakpoints

Debugger name and version: GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 2006)

No source file named /Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/"main.c.

Breakpoint 1 ("/Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/"main.c:6) pending.

Program exited normally.

Category
Debugger
Group
 
Status
Closed
Close date
2007-03-31 13:09
Assigned to
afb
pecan 2006-10-01 01:08

Did you note the extraneous quote in the filenames? Wierd.

No source file named /Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/"main.c.

Breakpoint 1 ("/Users/bnilsson/Documents/Programming/Active/CB projects/CBconsole/"main.c:6) pending.

bnilsson 2006-10-01 07:46

Yes, I noticed that. I did not mention it explicitly since I thought it was so obvious. Maybe I should have.

bnilsson 2006-10-07 15:59

If the source file path contains spaces, the source file is not found, as shown in the bug report.

If there are NO spaces in the path, the debugger stops at the breakpoint and the local variables can be evaluated.

afb 2006-11-28 21:37

This should be fixed now, please confirm.

afb 2007-03-31 13:09

Closing this bug, as it was fixed sometime last year.

And replicating the path/project below works alright.