This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2357: (Linux) GDB can't handle spaces in source file names
- From: typhonics at yahoo dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 6 Nov 2007 20:40:44 -0000
- Subject: gdb/2357: (Linux) GDB can't handle spaces in source file names
- Reply-to: typhonics at yahoo dot com
>Number: 2357
>Category: gdb
>Synopsis: (Linux) GDB can't handle spaces in source file names
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 06 20:48:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: typhonics@yahoo.com
>Release: GNU gdb 6.7
>Organization:
>Environment:
Ubuntu 7.10 Gutsy Gibbon (Linux Thoth 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux)
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
This GDB was configured as "i686-pc-linux-gnu".
>Description:
Strange errors occur during normal use if a source file's name contains a space. One example, with a source file named "Test File":
Starting program: /home/hippo/c/a.out
Error in re-setting breakpoint 1:
Function "Test" not defined.
Error in re-setting breakpoint 1:
Function "Test" not defined.
Error in re-setting breakpoint 1:
Function "Test" not defined.
Program exited normally.
A few cursory Google searches give me the impression this bug has been hanging around in GDB for a while now.
>How-To-Repeat:
$ echo "int main(void) {return 0;}" > "Test File"
$ gcc -x c -g "Test File"
$ gdb ./a.out
(gdb) break 1
(gdb) r
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: