From: Andrew Cagney <ac131313@cygnus.com>
To: Wolfgang Denk <wd@denx.de>
Cc: gdb-patches@sources.redhat.com
Subject: Re: New "attach" and "rsh" features for GDB/gdbserver on PowerPC
Date: Mon, 04 Mar 2002 18:27:00 -0000 [thread overview]
Message-ID: <3C8419F1.8090601@cygnus.com> (raw)
In-Reply-To: <20020304091402.DE57C109E9@denx.denx.de>
Just FYI,
> Description:
>
> Many embedded systems use gdbserver for application debugging.
> However the current implementation (on PowerPC) requires that the
> processes to be debugged are started under control of gdbserver. But
> often you want to debug (examine) some process on the target system
> that is already running. This is supported by the new support for the
> "attach" command.
I get the feeling that this change is pretty sigifnicant in terms of the
protocol (new ``I'' response, new attach packet, ...?). Could you
please post something describing what you plan on changing.
> This allows to have always one instance of gdbserver running on the
> target as a general purpose debug server that can be used to attach
> to any of the running application processes. In this "server mode"
> (when no command to debug is given on the gdbserver command line)
> gdbserver will not terminate when the debugged process exits, thus
> making sure you can continue to use the debug server.
>
> The "rshell" (remote shell) extension allows to use GDB/gdbserver to
> run arbitrary commands on the target system. The main intention is to
> be able to find out the PIDs of the processes you want to attach to
> by running a "ps" command without need for additional services on the
> target.
BTW, there is already the ``(gdb) monitor'' command and the
corresponding ``qRcmd'' packet.
As a general rule, features are always present - using #ifdef
HAVE_TARGET_ATTACH #ifdef FOO #else #endif is probably not a good idea.
enjoy,
Andrew
prev parent reply other threads:[~2002-03-05 2:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 1:14 Wolfgang Denk
2002-03-04 9:02 ` Daniel Jacobowitz
2002-03-04 10:58 ` Wolfgang Denk
2002-03-04 11:36 ` Michael Snyder
2002-03-04 11:43 ` Daniel Jacobowitz
2002-03-04 18:27 ` Andrew Cagney
2002-03-04 18:27 ` Andrew Cagney [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=3C8419F1.8090601@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=wd@denx.de \
/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