public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/11541] New: fail on linespace with path containing a colon using MI
@ 2010-04-26 18:40 dodji at redhat dot com
  2010-04-26 18:42 ` [Bug mi/11541] " tromey at redhat dot com
  0 siblings, 1 reply; 4+ messages in thread
From: dodji at redhat dot com @ 2010-04-26 18:40 UTC (permalink / raw)
  To: gdb-prs

[dodji@tutu ~]$ cat tmp/stu\:\ pid\ dir/test.cc 
int
main ()
{
    int i = 0;
    return i;
}
[dodji@tutu ~]$

Note how the directory name is weird, containing a ':' and spaces.

Now compile that program in that directory and try to set a breakpoint using MI
with a linespec that contains the absolute path to test.cc:

cd tmp/stu\:\ pid\ dir/
./gdb --interpreter=mi2 ./test
b main
run
(gdb)
-break-insert -f -i 0 "/home/dodji/tmp/stu: pid dir/test.cc:5"
&"Function \"\" not defined.\n"
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/dodji/tmp/stu:
pid dir/test.cc:5",times="0",original-location="/home/dodji/tmp/stu: pid
dir/test.cc:5"}
(gdb)

-break-insert -f -i 0 "'/home/dodji/tmp/stu: pid dir/test.cc':5"
&"Function \"/home/dodji/tmp/stu: pid dir/test.cc\" not defined.\n"
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="'/home/dodji/tmp/stu:
pid dir/test.cc':5",times="0",original-location="'/home/dodji/tmp/stu: pid
dir/test.cc':5"}
(gdb) 

It seems GDB cannot grok that linespec.

-- 
           Summary: fail on linespace with path containing a colon using MI
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dodji at redhat dot com
                CC: gdb-prs at sourceware dot org


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/11541] fail on linespace with path containing a colon using MI
  2010-04-26 18:40 [Bug mi/11541] New: fail on linespace with path containing a colon using MI dodji at redhat dot com
@ 2010-04-26 18:42 ` tromey at redhat dot com
  0 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2010-04-26 18:42 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/11541] fail on linespace with path containing a colon using MI
       [not found] <bug-11541-4717@http.sourceware.org/bugzilla/>
  2012-03-20 22:20 ` keiths at redhat dot com
@ 2012-06-13 18:10 ` keiths at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: keiths at redhat dot com @ 2012-06-13 18:10 UTC (permalink / raw)
  To: gdb-prs

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

Keith Seitz <keiths at redhat dot com> changed:

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

--- Comment #2 from Keith Seitz <keiths at redhat dot com> 2012-06-13 18:10:10 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] 4+ messages in thread

* [Bug mi/11541] fail on linespace with path containing a colon using MI
       [not found] <bug-11541-4717@http.sourceware.org/bugzilla/>
@ 2012-03-20 22:20 ` keiths at redhat dot com
  2012-06-13 18:10 ` keiths at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: keiths at redhat dot com @ 2012-03-20 22:20 UTC (permalink / raw)
  To: gdb-prs

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

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-03-20
                 CC|                            |keiths at redhat dot com
         AssignedTo|unassigned at sourceware    |keiths at redhat dot com
                   |dot org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Keith Seitz <keiths at redhat dot com> 2012-03-20 22:19:26 UTC ---
This should be fixed by the pending linespec rewrite. Because of the existence
of the single colon in the filename, the filename must be quoted:

(gdb) 
-break-insert -f -i 0 "'/home/keiths/tmp/stu: pid dir/test.c':3"
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040047b",func="foo",file="test.c",fullname="/home/keiths/tmp/stu:
pid dir/test.c",line="3",times="0",original-location="/home/keiths/tmp/stu: pid
dir/test.c:3"}

-- 
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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 18:40 [Bug mi/11541] New: fail on linespace with path containing a colon using MI dodji at redhat dot com
2010-04-26 18:42 ` [Bug mi/11541] " tromey at redhat dot com
     [not found] <bug-11541-4717@http.sourceware.org/bugzilla/>
2012-03-20 22:20 ` keiths at redhat dot com
2012-06-13 18:10 ` 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).