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

end of thread, other threads:[~2010-04-26 18:42 UTC | newest]

Thread overview: 2+ 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

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