Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Vladimir Prus'" <ghost@cs.msu.su>,
	        "'gdb@sources.redhat.com'" 	<gdb@sources.redhat.com>
Subject: RE: Multiexec MI broke MI compatibility?
Date: Tue, 13 Apr 2010 17:32:00 -0000	[thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC524451BF12@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <hq27jo$g3a$1@dough.gmane.org>

> -----Original Message-----
> From: gdb-owner@sourceware.org 
> [mailto:gdb-owner@sourceware.org] On Behalf Of Vladimir Prus
> Sent: Tuesday, April 13, 2010 12:54 PM
> To: gdb@sources.redhat.com
> Subject: Re: Multiexec MI broke MI compatibility?
> 
> Frederic Riss wrote:
> > Hi,
> > 
> > I tried to use the latest GDB CVS version with Eclipse Galileo DSF
> > Debug launch, and it failed to launch a debug session. I 
> looked at the
> > differences with Fedora's GDB7.0 that works in the same environment
> > and found out that the way MI reports threads totally changed. Some
> > notifications have changed (eg. thread-group-created became
> > thread-group-started),
> 
> This change was intended.
> 
> > the way to identify thread groups has changed
> > (thus breaking the way Eclipse did that query)...
> 
> If the change from numeric ids to 'iNNN' broken anything, this is
> DSF bug. The strings were *always* documented as opaque.

I didn't actually try it myself, but the following was posted to
a DSF-GDB bug.  Looks like a GDB problem, no?

797,561 9-exec-run
797,562 =thread-group-started,id="i1",pid="24272"   <--------- GDB gies group id 'i1'
797,562 =thread-created,id="1",group-id="i1"
797,562 9^running
797,562 *running,thread-id="all"
797,562 (gdb) 
797,587
=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-\
linux.so.2",symbols-loaded="0",thread-group="i1"
797,591
=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",\
symbols-loaded="0",thread-group="i1"
797,605
*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x080483bd",func="main",\
args=[],file="../src/Helloworld.c",fullname="/work1/friss/workspace/Helloworld/src/Helloworld.c",lin\
e="15"},thread-id="1",stopped-threads="all",core="0"
797,605 (gdb) 
797,748 10-list-thread-groups i1   
797,748 10^error,msg="invalid group id 'i1'"  <-------------- when we ask for the same is, GDB rejects it
797,749 (gdb)

> > All that changed
> > with the introduction of Multiexec MI.
> > 
> > This leads to some questions:
> >  - Was that expected?
> 
> The change from thread-group-created to thread-group-started 
> was intended.
> I don't think Marc raised any concerns about that. I was no aware that
> any released DSF version has actual support for multiexec. I 
> am not aware of any other change from documentated behaviour.

I don't remember this change at all.  Which means nothing really, my
memory is swiss cheese these days.
But it does seem like a strange choice, since the previous format
was already released.  We actually use it in DSF-GDB with GDB 7.0.
If this change needs to be done, I'm gonna have to have code like
	if (event.equals("thread-group-created") || event.equals("thread-group-started")
in a couple of places.

What is the change meant to improve?

> >  - What kind of backward compatibility does the MI 
> interface provide?
> 
> It generally should be backward compatible within given MI 
> version (currently 2).

Except for the above? ;-)

> >  - Is there a GUI working with the latest GDB and supporting the
> > Multiexec features?
> 
> No idea.

My guess is that there isn't.  At least, there is none in eclipse.
But it's planned, if we can find time for it.

Marc


  reply	other threads:[~2010-04-13 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 13:30 Frederic Riss
2010-04-13 16:54 ` Vladimir Prus
2010-04-13 17:32   ` Marc Khouzam [this message]
2010-04-13 19:40     ` Vladimir Prus
2010-04-13 20:33       ` Marc Khouzam
2010-04-14  8:12         ` Frederic Riss
2010-06-04 13:46           ` Marc Khouzam
2010-06-05  5:16             ` Vladimir Prus
2010-06-08  0:36               ` Marc Khouzam
2010-06-21 18:32                 ` 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=F7CE05678329534C957159168FA70DEC524451BF12@EUSAACMS0703.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=gdb@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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