From: Francois Chouinard <fchouinard@gmail.com>
To: tromey@redhat.com, gdb@sourceware.org
Subject: Re: Problem setting a breakpoint at a location containing spaces (using MI)
Date: Thu, 12 Feb 2009 22:50:00 -0000 [thread overview]
Message-ID: <578d90ee0902121450j7cf7f83ao5ad346a928bb900f@mail.gmail.com> (raw)
In-Reply-To: <m3prhngtu9.fsf@fleche.redhat.com>
Thanks a lot!
On Thu, Feb 12, 2009 at 5:42 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Francois" == Francois Chouinard <fchouinard@gmail.com> writes:
>
> Francois> I know this sounds supremely basic but, using MI, what would
> Francois> be the syntax to insert a breakpoint when specifying a
> Francois> location containing spaces?
>
> FWIW I tried this on the CLI and used:
>
> (gdb) b "a b.c":5
>
> Based on this, plus reading mi-parse.c:mi_parse_argv and
> mi-cmd-break.c:mi_cmd_break_insert, I tried:
>
> -break-insert "\"a b.c\":5"
> ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x080483c5",func="main",file="a b.c",fullname="/tmp/a b.c",line="5",times="0"}
>
> So this seems to work :-)
>
> Francois> Is there a protocol limitation? I know it works well with
> Francois> CLI but I wonder what is the correct variant to make it work
> Francois> with MI.
>
> I think the oddity here is that there is MI quoting to deal with, but
> also quoting handled by the location parsing code.
>
> Tom
>
prev parent reply other threads:[~2009-02-12 22:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 19:02 Francois Chouinard
2009-02-12 19:09 ` Robert Dewar
[not found] ` <578d90ee0902121323s30299358y326cb7776ec7f3be@mail.gmail.com>
2009-02-12 21:33 ` Francois Chouinard
2009-02-12 21:49 ` Francois Chouinard
2009-02-12 22:43 ` Tom Tromey
2009-02-12 22:50 ` Francois Chouinard [this message]
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=578d90ee0902121450j7cf7f83ao5ad346a928bb900f@mail.gmail.com \
--to=fchouinard@gmail.com \
--cc=gdb@sourceware.org \
--cc=tromey@redhat.com \
/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: link
Be 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