Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Debug and 'spacey' pathnames

Hi,

What is is the current situation with pathnames containing spaces under CDT
(Windows XP)? 

I have a non-Cygwin version of GDB that I am launching as a "GDB Debugger".
My workspace directory is under "My Documents". When starting the debug
session, Eclipse reports "Unable to set working directory: mi_cmd_env_cd:
Usage DIRECTORY". The behaviour is the same for Eclipse/CDT 3.1.2/3.0.2 and
3.1.1/3.0.1.

What is the recommended solution to fix this?

Here is the Eclipse debug output:

[1,145,382,008,417] mt-elf-gdb --cd=C:\Documents and Settings\Derek\My
Documents
\Morpho\mrisc2 --com\
mand=../morpho/mt-elf-gdb.ini -q -nw -i mi C:\Documents and
Settings\Derek\My Documents\Morpho\mrisc2\Debug\mrisc2
[1,145,382,008,477] 1-gdb-set confirm off [1,145,382,008,487] 1^done
[1,145,382,008,497] (gdb) [1,145,382,008,497] 2-gdb-set width 0
[1,145,382,008,518] 2^done [1,145,382,008,518] (gdb) [1,145,382,008,518]
3-gdb-set height 0 [1,145,382,008,528] 3^done [1,145,382,008,528]
4-interpreter-exec console echo [1,145,382,008,528] (gdb)
[1,145,382,008,528] 4^done [1,145,382,008,528] (gdb) [1,145,382,008,538]
5-gdb-show prompt [1,145,382,008,548] 5^done,value="(gdb) "
[1,145,382,008,548] (gdb)
[1,145,382,008,548] 6-stack-list-frames
[1,145,382,008,558] &"No registers.\n"
[1,145,382,008,558] 6^error,msg="No registers."
[1,145,382,008,598] (gdb)
[1,145,382,008,748] 7-gdb-set auto-solib-add on [1,145,382,008,758] 7^done
[1,145,382,008,758] (gdb) [1,145,382,008,758] 8-gdb-set stop-on-solib-events
0 [1,145,382,008,758] 8^done [1,145,382,008,758] (gdb) [1,145,382,008,768]
9-gdb-set stop-on-solib-events 1 [1,145,382,008,768] 9^done
[1,145,382,008,768] (gdb) [1,145,382,008,878] 10-environment-cd C:\Documents
and Settings\Derek\My Documen
ts\Morpho\mrisc2
[1,145,382,008,918] &"mi_cmd_env_cd: Usage DIRECTORY\n"
[1,145,382,008,928] 10^error,msg="mi_cmd_env_cd: Usage DIRECTORY"
[1,145,382,008,928] (gdb)
[1,145,382,008,968] 11-gdb-exit
[1,145,382,009,068] 11^exit

---
Derek 


---
Derek 



Back to the top