Bug 9462 - (Linux) GDB can't handle spaces in source file names
Summary: (Linux) GDB can't handle spaces in source file names
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 6.7
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 20:48 UTC by typhonics
Modified: 2014-09-17 15:35 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description typhonics 2007-11-06 20:48:01 UTC
[Converted from Gnats 2357]

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.

Release:
GNU gdb 6.7

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".

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
Comment 1 Sergio Durigan Junior 2014-09-17 15:35:25 UTC
(gdb) start
Temporary breakpoint 1 at 0x4004f4: file Test File, line 1.
Starting program: a.out 

Temporary breakpoint 1, main () at Test File:1
1       int main(void) {return 0;}


Therefore, closing as OBSOLETE.