Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Marc Khouzam <marc@khouzam.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Multi-Process Mode for gdbserver
Date: Tue, 06 May 2008 02:36:00 -0000	[thread overview]
Message-ID: <20080506023622.GA12437@caradoc.them.org> (raw)
In-Reply-To: <803815B8DB5071438A047CB187B98880F95109F3DD@BL2PRD0001MB022.prod.exchangelabs.com>

On Mon, May 05, 2008 at 06:38:14PM -0700, Marc Khouzam wrote:
> From what I gather though, there is no monitor command to list the
> processes that are available where gdbserver is running.  Is there a
> good reason for that, or is it just that no one has had the time?

No one had the interest yet.  If gdbserver is running over ssh, and
you're using it by hand, it's not a big hardship to keep another
window open.

> If it is a missing patch, then I am willing to look into implementing this.  However, I wonder how to deal
> with the fact that such a function is OS dependent.  Personally, I want it for Linux.  Is it ok
> to try to enhance gdbserver to have "monitor list processes" but only for Linux?  And if so, it is ok to
> simply have gdbserver call ps?

Depends what you want to do with the data.  If all you want is a
textual list, then even "monitor shell ps" would be OK.  It relies
on having ps on the target and the output will vary based on what
version of ps you have.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2008-05-06  2:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06  1:38 Marc Khouzam
2008-05-06  2:36 ` Daniel Jacobowitz [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=20080506023622.GA12437@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=marc@khouzam.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