From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] gdbserver 2/n - signals
Date: Thu, 19 Jul 2001 14:17:00 -0000 [thread overview]
Message-ID: <20010719141742.A25968@nevyn.them.org> (raw)
In-Reply-To: <3B574A5D.6030403@cygnus.com>
On Thu, Jul 19, 2001 at 05:00:13PM -0400, Andrew Cagney wrote:
> Daniel,
>
> Things I noticed from a brief glance:
>
> o
> I think you'll also need to change
> gdbserver/remote-utils.c:prepare_resume_reply().
* gdbserver/remote-utils.c (prepare_resume_reply): Call
target_signal_from_host on signals sent to the remote.
It was there.
> o
> I don't understand the need for the file
> gdbserver/signals.c. Isn't that what
> gdb/signals.c is for?
I was going to use that, except for a few small problems:
- wasted space, a couple of functions and the large name table.
I'm not really bothered by this one.
- warning() and internal_error() calls, which gdbserver doesn't
provide.
Perhaps re-using it despite those minor hurdles would be wiser. I'll
tweak the patch.
> o
> What are your cleanup plans for gdb/signals.c
> - signals.h? s/STREQ/.../?
Nothing terribly complicated:
- Removing the MACH #ifdefs, or at least changing. The values of
things in the target_signal enum change depending on preprocessor
conditionals, which is no good for a protocol.
- a few minor typo cleanups, in comments
- removing <signal.h> from target.c, after verifying that I got
everything I meant to get out of that file.
Adding a signals.h would be nice too, yes. And fixing that lone STREQ.
> I take it you've also got a few more steps planned, can you give a quick
> sketch of where you're going?
Short term: enough to make gdbserver compile on any targets it still
currently builds on (I have no clue which these are, for lack of test
hosts on many of the types) as well as more Linux targets. If you're
willing, I'd like to do this somewhat messily and before the release of
5.1. It doesn't matter too much to me, since I've got no real
compunctions about shipping a CVS snapshot instead, but it goes against
my instincts to let gdbserver out the door building on so many fewer
targets than it did in 5.0.
What I envision from here, longer term:
- gdbserver registers cleanup. This will mean precisely defining,
according to present usage, the register packets of every
gdbserver-supported target, or at least the ones I can test or
find someone to test for me. A lot of documentation; a lot of
duplicate code elimination in gdbserver. I'm also going to try to
define the gdbserver register layout in such a way that GDB can use
it too (possibly by your flexible string description approach, or
just a shared structure).
- remote architecture query; I'm not yet sure what information it
will be able to or should provide, but I think this is definitely
the way to go. Connect to a remote target and gdb figures out what
processor and ISA/ABI we're dealing with from the stub.
There's a lot of documentation work in there, also.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-07-19 14:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-19 12:01 Daniel Jacobowitz
2001-07-19 14:00 ` Andrew Cagney
2001-07-19 14:17 ` Daniel Jacobowitz [this message]
2001-07-19 14:49 ` Andrew Cagney
2001-07-19 14:52 ` Daniel Jacobowitz
2001-07-19 15:21 ` Andrew Cagney
2001-07-20 0:32 ` Eli Zaretskii
2001-07-20 8:33 ` Daniel Jacobowitz
2001-07-20 11:31 ` Eli Zaretskii
2001-07-20 11:34 ` Daniel Jacobowitz
2001-07-21 0:38 ` Eli Zaretskii
2001-07-20 16:48 ` Andrew Cagney
2001-07-21 1:04 ` Eli Zaretskii
2001-07-20 16:42 ` Andrew Cagney
2001-07-19 17:22 ` Kevin Buettner
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=20010719141742.A25968@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@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