public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "dodji at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug mi/11541] New: fail on linespace with path containing a colon using MI Date: Mon, 26 Apr 2010 18:40:00 -0000 [thread overview] Message-ID: <20100426184038.11541.dodji@redhat.com> (raw) [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.
next reply other threads:[~2010-04-26 18:40 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-26 18:40 dodji at redhat dot com [this message] 2010-04-26 18:42 ` [Bug mi/11541] " tromey at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100426184038.11541.dodji@redhat.com \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).