This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/11541] New: fail on linespace with path containing a colon using MI


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]