public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined)
@ 2012-03-03  8:09 niko.sams at gmail dot com
  2012-03-04  8:08 ` [Bug breakpoints/13798] " jan.kratochvil at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: niko.sams at gmail dot com @ 2012-03-03  8:09 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13798

             Bug #: 13798
           Summary: regression: can't set breakpoint for filepath
                    containing space (Error in re-setting breakpoint:
                    Function not defined)
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: niko.sams@gmail.com
    Classification: Unclassified


Since gdb 7.4 setting breakpoint for a filepath containing spaces doesn't work
anymore. See the following example:

niko@niko-home:~$ cat space\ spaces.c 
#include <stdio.h>

int tmp(void) {
    int a = 42;
    printf("%d", a);
}

int main(void) {
    tmp();

    return 0;
}

#gdb 7.3.1 works fine:
niko@niko-home:~$ gdb a.out 
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/niko/a.out...done.
(gdb) break "space spaces.c":4
Breakpoint 1 at 0x4004ec: file space spaces.c, line 4.
(gdb) r
Starting program: /home/niko/a.out 

Breakpoint 1, tmp () at space spaces.c:4
4           int a = 42;
(gdb) 


# gdb 7.4 doesn't:
niko@niko-home:~$ gdb a.out 
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/niko/a.out...done.
(gdb) break "space spaces.c":4
Breakpoint 1 at 0x4004ec: file space spaces.c, line 4.
(gdb) r
Starting program: /home/niko/a.out 
Error in re-setting breakpoint 1: Function "space spaces.c:4" not defined.
42[Inferior 1 (process 2008) exited normally]
(gdb)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/13798] regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined)
  2012-03-03  8:09 [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined) niko.sams at gmail dot com
@ 2012-03-04  8:08 ` jan.kratochvil at redhat dot com
  2012-03-21 18:44 ` keiths at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-03-04  8:08 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13798

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com, keiths at redhat
                   |                            |dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/13798] regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined)
  2012-03-03  8:09 [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined) niko.sams at gmail dot com
  2012-03-04  8:08 ` [Bug breakpoints/13798] " jan.kratochvil at redhat dot com
@ 2012-03-21 18:44 ` keiths at redhat dot com
  2012-06-13 18:06 ` cvs-commit at gcc dot gnu.org
  2012-06-13 18:09 ` keiths at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: keiths at redhat dot com @ 2012-03-21 18:44 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13798

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at sourceware    |keiths at redhat dot com
                   |dot org                     |

--- Comment #1 from Keith Seitz <keiths at redhat dot com> 2012-03-21 18:44:29 UTC ---
This should be fixed with the new linespec rewrite that I submitted for
approval recently. Once that goes in, this should be fixed for good:

(gdb) b file with spaces.cc:10
Breakpoint 1 at 0x4004e4: file file with spaces.cc, line 10.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/13798] regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined)
  2012-03-03  8:09 [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined) niko.sams at gmail dot com
  2012-03-04  8:08 ` [Bug breakpoints/13798] " jan.kratochvil at redhat dot com
  2012-03-21 18:44 ` keiths at redhat dot com
@ 2012-06-13 18:06 ` cvs-commit at gcc dot gnu.org
  2012-06-13 18:09 ` keiths at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-06-13 18:06 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13798

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-06-13 18:06:12 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kseitz@sourceware.org    2012-06-13 18:06:07

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.linespec: ls-errs.exp 

Log message:
    PR breakpoints/13798 and mi/11541
    * gdb.linespec/ls-errs.exp: Add a few more tests for
    filenames with spaces and colons.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3223&r2=1.3224
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.linespec/ls-errs.exp.diff?cvsroot=src&r1=1.1&r2=1.2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/13798] regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined)
  2012-03-03  8:09 [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined) niko.sams at gmail dot com
                   ` (2 preceding siblings ...)
  2012-06-13 18:06 ` cvs-commit at gcc dot gnu.org
@ 2012-06-13 18:09 ` keiths at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: keiths at redhat dot com @ 2012-06-13 18:09 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13798

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |7.5

--- Comment #3 from Keith Seitz <keiths at redhat dot com> 2012-06-13 18:09:03 UTC ---
Confirmed fixed in the linespec parser rewrite. If you plan to use filenames
with spaces and/or colons in them, I highly recommend quoting them (single or
double).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-13 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03  8:09 [Bug breakpoints/13798] New: regression: can't set breakpoint for filepath containing space (Error in re-setting breakpoint: Function not defined) niko.sams at gmail dot com
2012-03-04  8:08 ` [Bug breakpoints/13798] " jan.kratochvil at redhat dot com
2012-03-21 18:44 ` keiths at redhat dot com
2012-06-13 18:06 ` cvs-commit at gcc dot gnu.org
2012-06-13 18:09 ` keiths at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).