Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: 'Mircea Gherzan' <mircea.gherzan@intel.com>,
	"'tromey@redhat.com'"	<tromey@redhat.com>,
	"'gdb-patches@sourceware.org'"	<gdb-patches@sourceware.org>
Subject: Re: [RFC] Fix the MI result of -break-insert with multiple locations
Date: Tue, 29 Jan 2013 16:26:00 -0000	[thread overview]
Message-ID: <5107F832.6080405@codesourcery.com> (raw)
In-Reply-To: <E59706EF8DB1D147B15BECA3322E4BDC0952F5@eusaamb103.ericsson.se>

On 29.01.2013 20:04, Marc Khouzam wrote:

>> (gdb)
>> -break-insert foobar
>> ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="
>> y",addr="<MULTIPLE>",times="0",original-location="foobar"},{nu
> mber="1.1",enabled="y",addr="0x00000000004008d7",func="foobar()",file="overload.cpp",fullname=".../src/test-bktp-mi-> overload/overload.cpp",line="22",thread-groups=["i1"]},{number
> ="1.2",enabled="y",addr="0x00000000004008e0",func="foobar(int)",file="overload.cpp",fullname=".../src/test-bktp-mi-> overload/overload.cpp",line="26",thread-groups=["i1"]}
>> (gdb)
>>
>> So no square brackets. Therefore not a list and IMHO not a
>> valid MI output.
>
> You're right.  The output I took was from -break-list, but
> for -break-insert, and probably some others, this does not
> look to be valid syntax.
>
> I like your proposal of
>    bkpt={number="1", ... , locations=[{number="1.1", ...}, ...]}
>
> which would allow to easily differentiate between the "main bp
> entry" and the "sub entries".

I think it would help to see complete output, without ellipsis.

(And when we agree that the proposed output is good, the patch would need testsuite changes to be accepted)

Thanks,

-- 
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/


  reply	other threads:[~2013-01-29 16:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 14:36 Mircea Gherzan
2013-01-29 15:39 ` Marc Khouzam
2013-01-29 15:52   ` Mircea Gherzan
2013-01-29 16:04     ` Marc Khouzam
2013-01-29 16:26       ` Vladimir Prus [this message]
2013-01-29 19:28         ` Mircea Gherzan
2013-01-29 20:36           ` Vladimir Prus
2013-01-29 20:55             ` Mircea Gherzan
2013-01-29 19:45 ` André Pönitz
2013-01-29 20:42   ` Marc Khouzam
2013-01-29 22:14     ` André Pönitz
2013-01-30 16:27       ` Marc Khouzam

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=5107F832.6080405@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    --cc=mircea.gherzan@intel.com \
    --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