Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Vladimir Prus'" <vladimir@codesourcery.com>
Cc: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: RE: [MI] Extending -list-thread-groups --available to show cores
Date: Thu, 19 Nov 2009 07:11:00 -0000	[thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC515AF29219@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <200911171043.54727.vladimir@codesourcery.com>

 

> -----Original Message-----
> From: Vladimir Prus [mailto:vladimir@codesourcery.com] 
> Sent: Tuesday, November 17, 2009 2:44 AM
>

[...]

> > > [CONSIDER: Shall -list-target-features report if 
> --available + recurse works?]
> > 
> > Say a target does not support this, do you forsee a 
> performance impact if the 
> > frontend still uses --recurse in this case?  If not, then a 
> frontend could
> > figure out if this is supported by looking at the result of 
> the command.  I think
> > that would be enough.  
> > 
> > In fact, if there is a performance impact, a frontend could 
> stop using "--recurse"
> > when it first noticed the missing "thread=" from the 
> output.  But in that case, 
> > using -list-target-features would be more elegant.
> > 
> > That being say, it won't hurt any FEs if 
> -list-target-features did report this
> > anyway.  (In Eclipse, we don't use -list-target-features 
> yet because we've focused
> > on Linux targets, but I think we should improved the 
> support of other targets by 
> > using -list-target-features.)
> 
> I don't think that there's any perfomance impact for getting 
> --recurse when
> it's not supported. And on the other hand, there's some 
> trickery involved
> in reporting --recurse support, specifically over a remote connection.
> I'm gonna skip this for now, unless a real need to test for 
> this up-front will surface.

Sounds good to me.

[...]

> > > Example:
> > > 
> > >    -list-thread-groups --available --recurse 1 17 18
> > >     ^done,groups=[{id="17", 
> types="process",pid="yyy",num_children="2",cores=[1,2],
> > >                    threads=[{id="1",target-id="Thread 
> 0xb7e14b90",cores=[1]},
> > >                             {id="2",target-id="Thread 
> 0xb7e14b90",cores=[2]}]}]
> > 
> > Above it says that "--recurse" is for -list-thread-groups 
> without parameters.
> > I guess the example should be 
> > -list-thread-groups --available 17 18
> > Would using --recurse here cause an error, or be ignored?
> 
> In fact, I did not meant to prohibit --available + --recurse 
> + several groups. I've adjust the wording above.

So, all combinations are allowed.  That is great.
My last comment on the new revision.  It stills says:
"2. To cut down on the number of roundtrips, the 
    --list-thread-groups without parameters may optionally 
                         ^^^^^^^^^^^^^^^^^^
    recurse into the thread hierarchy"

It shouldn't say "without parameters", since --recurse
will be allowed all the time.

Thanks

Marc


      reply	other threads:[~2009-11-17 13:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09  1:36 Vladimir Prus
2009-11-09 16:17 ` Marc Khouzam
2009-11-09 16:25   ` Vladimir Prus
2009-11-09 16:42     ` Marc Khouzam
2009-11-09 17:20       ` Vladimir Prus
2009-11-09 17:33         ` Marc Khouzam
2009-11-09 20:02           ` Marc Khouzam
2009-11-16 14:52           ` Vladimir Prus
2009-11-16 17:55             ` Vladimir Prus
2009-11-17  7:45 ` Vladimir Prus
2009-11-17 13:49   ` Marc Khouzam
2009-11-19  6:44     ` Vladimir Prus
2009-11-19  7:11       ` Marc Khouzam [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=F7CE05678329534C957159168FA70DEC515AF29219@EUSAACMS0703.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@codesourcery.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