Subject: gdb: unable to set breakpoint if path to source file contains parenthesis
Date: Mon, 20 Aug 2007 21:42:47 +0400
Package: gdb
Version: 6.4.90.dfsg-1
Severity: normal
unable to set breakpoint if path to source file contains parenthesis.
I think that gdb is inproperly handles parenthesis in a file name.
al@gaa:/tmp/dirname(comment)/integration/v1.0-integration$ 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/dirname(comment)/integration/v1.0-integration/build/debug/bin/dis...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break /tmp/dirname(comment)/integration/v1.0-integration/gui/main.cpp:29
Function "/tmp/dirname(comment)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22.3
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gdb depends on:
ii libc6 2.6-2 GNU C Library: Shared libraries
ii libncurses5 5.6-3 Shared libraries for terminal hand
ii libreadline5 5.2-3 GNU readline and history libraries
gdb recommends no packages.
-- no debconf information
Subject: Re: Bug#438912: gdb: unable to set breakpoint if path to source
file contains parenthesis
Date: Mon, 20 Aug 2007 14:03:41 -0400
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.
--
Daniel Jacobowitz
CodeSourcery
Subject: Re: Bug#438912: gdb: unable to set breakpoint if path to source file contains parenthesis
Date: Wed, 22 Aug 2007 19:43:53 +0400
В сообщении от 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:
al@gaa:/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
On Thu, Nov 15, 2007 at 04:21:50AM +0300, Alexander Galanin wrote:
> any news?
I haven't had time to look at it since, sorry.
--
Daniel Jacobowitz
CodeSourcery