From: David Daney <ddaney@avtrex.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: stanshebs@earthlink.net, gdb@sourceware.org
Subject: Re: Towards multiprocess GDB
Date: Fri, 18 Jul 2008 22:20:00 -0000 [thread overview]
Message-ID: <4881158B.4010704@avtrex.com> (raw)
In-Reply-To: <200807182141.m6ILfBcf014252@brahms.sibelius.xs4all.nl>
Mark Kettenis wrote:
>> Date: Fri, 18 Jul 2008 13:40:08 -0700
>> From: Stan Shebs <stanshebs@earthlink.net>
>>
>> CodeSourcery has a project to add "multiprocess" capability to GDB,
>> and with this message I'd like to kick off some discussion of what
>> that means and how to make it happen.
>
> Please remind me, why was this a desirable capability again?
>
> Personally, I can't imagine someone would really want to do this using
> the traditional gdb CLI, at least not within a single gdb instance.
> I'd simply fire up two (or more) xterms and debug the processes
> seperately. One thing that could be useful though for that scenario
> is the ability to hand of processes between gdb instances upon
> fork/exec.
>
> I suppose multiprocess debugging makes somewhat more sense in a
> GUI-based IDE environment. But running multiple instances of gdb
> should work just as well in that case.
>
> Adding a "multiprocess" capability to GDB is almost certainly going to
> add significant complexity. So there should be a good motivation for
> it.
Here's my take on it (not being at all involved in the effort):
Suppose that you are debugging both a client and a server process. One scenario is that you want to debug the results of some command sent between them.
Set a break point in the command handler and disable it.
In the other process set a breakpoint just before sending the command. This breakpoint's commands could enable the break point in the other process and continue.
Doing this with a multiprocess gdb would be trivial. If you have to use multiple gdb instances, it is either a manual process or some complicated scripting setup.
Just my $0.02,
David Daney
next prev parent reply other threads:[~2008-07-18 22:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 20:50 Stan Shebs
2008-07-18 21:21 ` Paul Koning
2008-07-18 21:41 ` Stan Shebs
2008-07-21 0:34 ` Michael Snyder
2008-07-18 22:13 ` Mark Kettenis
2008-07-18 22:20 ` David Daney [this message]
2008-07-18 22:28 ` Thiago Jung Bauermann
2008-07-18 23:09 ` Stan Shebs
2008-07-19 3:53 ` Pedro Alves
2008-07-21 17:39 ` Stan Shebs
2008-07-21 1:53 ` Michael Snyder
2008-07-21 16:08 ` Russell Shaw
2008-07-21 17:57 ` Joel Brobecker
2008-07-18 23:13 ` Tom Tromey
2008-07-21 17:11 ` Stan Shebs
2008-07-21 0:30 ` Michael Snyder
2008-07-21 18:21 ` Paul Pluzhnikov
2008-07-21 18:32 ` Stan Shebs
2008-07-21 16:38 ` Michael Eager
2008-07-21 21:54 ` Stan Shebs
2008-07-31 22:04 ` Ian Lance Taylor
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=4881158B.4010704@avtrex.com \
--to=ddaney@avtrex.com \
--cc=gdb@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=stanshebs@earthlink.net \
/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