From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
Cc: gdb@sources.redhat.com
Subject: Re: Current (non-) state of gdbserver
Date: Thu, 12 Jul 2001 13:04:00 -0000 [thread overview]
Message-ID: <3B4E02BA.6070805@cygnus.com> (raw)
In-Reply-To: <20010710234505.A5814@nevyn.them.org>
Since people are posting wishlists on GDBserver, I'll post mine. It
contains one item:
o get it to talk to its self
That is, a GDBserver talking to a GDBserver talking to a GDBserver. The
foundation for each layer being a target object/stack-entry/...
As John Kallal has rightly pointed out, this is hard, really hard. It
means GDBserver gets an event-loop. It means GDBserver has to do
non-blocking reads and writes, it means ....
However, it also offers a glimmer of hope on one of GDB's problems - its
very blocking centric behavour. GDBserver could be small enough, yet
applicable enough, to allow the development of a proper target stack.
Using sufficient glue, gaffer tape and spac-filler, (and a re-entrant
event-loop) it could even be bolted onto GDB's current target interface.
Maybe.
----
With regard to modifying the remote protocol, to be honest, for all its
warts, beginning to think it isn't that bad. If you think about it,
consider a memory read:
-> $M<addr>#CC
<- +$<hex-data>#CC
-> +
then, apart from assuming a reliable channel (and remove the ``+'')
there isn't much more you can extract out of this. Bigger gains can be
made by making better use of that channel (combining reads/writes, ...)
all of which are changes to GDB.
This isn't to say that a replacement protocol wouldn't be more welcome
though.
Andrew
prev parent reply other threads:[~2001-07-12 13:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-10 23:45 Daniel Jacobowitz
2001-07-11 10:36 ` Andrew Cagney
2001-07-11 12:03 ` Stan Shebs
2001-07-11 13:17 ` J.T. Conklin
2001-07-11 13:55 ` Andrew Cagney
2001-07-11 15:06 ` Quality Quorum
2001-07-12 12:21 ` J.T. Conklin
2001-07-12 12:45 ` Andrew Cagney
2001-07-13 7:53 ` Quality Quorum
2001-07-15 0:30 ` Eli Zaretskii
2001-07-15 0:58 ` Fabrice Gautier
2001-07-15 3:15 ` Eli Zaretskii
2001-07-15 6:21 ` Fabrice Gautier
2001-07-16 14:08 ` Quality Quorum
2001-07-11 13:44 ` Andrew Cagney
2001-07-11 12:43 ` J.T. Conklin
2001-07-12 13:04 ` 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=3B4E02BA.6070805@cygnus.com \
--to=ac131313@cygnus.com \
--cc=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.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