How to set a breakpoint in file, which name has spaces?
Nikolay Molchanov
Nikolay.Molchanov@Sun.COM
Thu Aug 10 06:22:00 GMT 2006
Hello!
There seems to be a problem with setting a breakpoint in files,
which names have spaces (usually it happens on Windows, but it
is possible to create such files in Unix filesystems as well).
Here is a part of a log file, that shows the problem.
Note that '\ ' works just great in "-file-exec-and-symbols" command,
but does not work in "-break-insert" command.
bash-3.1$ gdb --nw --interpreter=mi
~"GNU gdb 6.5.50.20060706-cvs (cygwin-special)\n"
~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and
you are\n"
~"welcome to change it and/or distribute copies of it under certain
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for
details.\n"
~"This GDB was configured as \"i686-pc-cygwin\"."
~"\n"
(gdb)
212-file-exec-and-symbols C:/Documents\ and\
Settings/nikm/.netbeans/Netbeans\ Projects/Args1/dist/Debug/args
212^done
(gdb)
221-break-insert C:/Documents\ and\
Settings/nikm/.netbeans/Netbeans\ Projects/Args1/src/main.c:17
&"mi_cmd_break_insert: Garbage following <location>\n"
221^error,msg="mi_cmd_break_insert: Garbage following <location>"
(gdb)
I tried to use single and double quotes, but still no luck.
Is it a known problem? Is there a workaround?
Thanks in advance,
Nikolay Molchanov
More information about the Gdb
mailing list