From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 349 invoked by alias); 26 Apr 2010 18:40:42 -0000 Received: (qmail 32731 invoked by uid 48); 26 Apr 2010 18:40:41 -0000 Date: Mon, 26 Apr 2010 18:40:00 -0000 From: "dodji at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20100426184038.11541.dodji@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug mi/11541] New: fail on linespace with path containing a colon using MI X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00162.txt.bz2 [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="/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="'/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.