В сообщении от 20 августа 2007 22:03 Daniel Jacobowitz написал(a):
> On Mon, Aug 20, 2007 at 09:42:47PM +0400, Alexander Galanin wrote:
> > unable to set breakpoint if path to source file contains parenthesis.
> > I think that gdb is inproperly handles parenthesis in a file name.
>
> Please try single or double quotes around the filename.
All shell-like quotings and escapings does not work:

[EMAIL PROTECTED]:/tmp/name(comment)$ gdb
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
(gdb) file build/debug/bin/dis
Reading symbols from /tmp/name(comment)/build/debug/bin/dis...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break /tmp/name(comment)/gui/main.cpp:29
Function "/tmp/name(comment)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) break '/tmp/name(comment)/gui/main.cpp':29
Function "/tmp/name(comment)/gui/main.cpp" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) break '/tmp/name(comment)/gui/main.cpp:29'
Function "/tmp/name(comment)/gui/main.cpp:29" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) break "/tmp/name(comment)/gui/main.cpp":29
Function "/tmp/name(comment)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) break "/tmp/name(comment)/gui/main.cpp:29"
Function "/tmp/name(comment)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) break /tmp/name\(comment\)/gui/main.cpp:29
Function "/tmp/name\(comment\)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n

-- 
Alexander Galanin

Reply via email to