* Multi-Process Mode for gdbserver
@ 2008-05-06 1:38 Marc Khouzam
2008-05-06 2:36 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Marc Khouzam @ 2008-05-06 1:38 UTC (permalink / raw)
To: gdb
Hi,
I'm interested in using the Multi-Process Mode for gdbserver to attach and detach from running processes.
From what I read in the doc, which I then tried, I can start a gdbserver with --multi and I can have gdb
tell it to attach/detach to a running process. This is really cool.
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?
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?
Thanks for the expertise
Marc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Multi-Process Mode for gdbserver
2008-05-06 1:38 Multi-Process Mode for gdbserver Marc Khouzam
@ 2008-05-06 2:36 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-05-06 2:36 UTC (permalink / raw)
To: Marc Khouzam; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-06 2:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 1:38 Multi-Process Mode for gdbserver Marc Khouzam
2008-05-06 2:36 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox