From: Michael Snyder <msnyder@vmware.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Stan Shebs <stan@codesourcery.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: multi-proc: info processes?
Date: Thu, 13 Nov 2008 01:48:00 -0000 [thread overview]
Message-ID: <491B873A.9010705@vmware.com> (raw)
In-Reply-To: <200811122129.59949.pedro@codesourcery.com>
Pedro Alves wrote:
> On Wednesday 12 November 2008 21:21:59, Michael Snyder wrote:
>> Stan Shebs wrote:
>>> Michael Snyder wrote:
>>>> Hey Pedro,
>>>>
>>>> For your multi-process work, are you planning anything
>>>> analogous to the "info threads" command, eg. "info processes"?
>>> Look at "info inferiors". It's just the processes (or whatever) that are
>>> currently being controlled by GDB.
>>>> What might that look like, in your model? Would it list,
>>>> say, just the processes that gdb is attached to? Or would
>>>> you want something analogous to "ps", that would list all
>>>> of the processes that are available to be attached?
>>> That would be somewhat ambitious, especially for a remote target - I
>>> think you'd need a new packet just to return the list of processes...
>> Sure -- by analogy with qfThreadInfo/qsThreadInfo, it could
>> be implemented as an iterator.
>
> Yeah, there are many ways to implement that. Both Vladimir and
> I ended up doing that independently but similarly, by querying a new
> enum target_object and having the stub formatting the list of
> processes as xml. Vladimir has the ball on merging those
> currently --- let's see what comes out, might even pop out something
> totally different. :-)
Hmmm, isn't the formatting of xml a little heavy-weight for a stub?
Stubs are traditionally sort of light-weight entities. I realize
we're really talking about a gdbserver-type entity here...
Just for yuks, what about something like this, again by
analogy to info threads?
Query: qfProcInfo (f for 'first')
Reply: m<pid>
Query: qsProcInfo (s for... umm, 'next')
Reply: m<pid>, or 'l' if this is the 'last' reply.
Of course, then you might want some analog of "ExtraInfo"...
next prev parent reply other threads:[~2008-11-13 1:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 20:04 Michael Snyder
2008-11-12 20:20 ` Stan Shebs
2008-11-12 20:51 ` Vladimir Prus
2008-11-12 21:22 ` Michael Snyder
2008-11-12 21:30 ` Pedro Alves
2008-11-12 23:16 ` Michael Snyder
2008-11-13 1:48 ` Michael Snyder [this message]
2008-11-13 4:57 ` Daniel Jacobowitz
2008-11-13 8:09 ` EBo
2008-11-13 8:21 ` Vladimir Prus
2008-11-13 23:19 ` Michael Snyder
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=491B873A.9010705@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=stan@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