From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Fabrice Gautier <gautier@email.enst.fr>,
jtc@redback.com, gdb@sources.redhat.com
Subject: Re: gdbserver (was Re: parcelling up struct gdbarch)
Date: Tue, 17 Jul 2001 11:21:00 -0000 [thread overview]
Message-ID: <20010717112123.A19942@nevyn.them.org> (raw)
In-Reply-To: <3B547FA1.2010605@cygnus.com>
On Tue, Jul 17, 2001 at 02:10:41PM -0400, Andrew Cagney wrote:
> >
> > How so? It seems to me to be a much simpler problem, instead. It
> > means that gdbserver needes target_signal_to_host and friends, which is
> > much easier. If, that is, we change documentation and gdbserver rather than
> > remote.c.
>
>
> If gdbserver is going to pass ptrace() (i.e. target dependant) register
> bufers then should it also pass back target dependant signal numbers?
>
> In fact, thinking about it, I know where my comment would have come from
> - I would have looked at gdbserver and tried to document the current
> behavour. Only later did I notice that the comment was wrong and
> remote.c wasn't doing any conversion :-/
>
> So, which is correct?
Well, I can argue (and, confusingly, have argued :) both sides here.
I'm not entirely sure. One advantage of passing target dependent signal
numbers is that if we send a signal that has no target equivalent we
can error before trying to communicate that to the target. I think
it's outweighed by the fact that a host GDB may not even have the
target's signal numbers available, though.
("But target.c knows them!" you say? Look where it gets them from -
the host <signal.h>. The host <signal.h> is wrong for a cross gdb.
Mind if I add at least a FIXME comment to target.c about this?)
So for signals at least, documentation and gdbserver should change.
For register buffers, see the other half of this thread.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-07-17 11:21 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-13 0:16 parcelling up struct gdbarch Daniel Jacobowitz
2001-07-13 12:35 ` Andrew Cagney
2001-07-13 14:53 ` Daniel Jacobowitz
2001-07-14 8:33 ` Andrew Cagney
2001-07-16 11:25 ` Daniel Jacobowitz
2001-07-16 11:27 ` H . J . Lu
2001-07-16 12:04 ` Andrew Cagney
2001-07-16 12:34 ` J.T. Conklin
2001-07-16 15:30 ` Andrew Cagney
2001-07-16 15:40 ` Daniel Jacobowitz
2001-07-16 17:24 ` gdbserver (was Re: parcelling up struct gdbarch) Fabrice Gautier
2001-07-16 21:17 ` Daniel Jacobowitz
2001-07-16 22:22 ` Fabrice Gautier
2001-07-16 22:28 ` Daniel Jacobowitz
2001-07-17 10:00 ` Andrew Cagney
2001-07-17 10:11 ` Daniel Jacobowitz
2001-07-17 11:10 ` Andrew Cagney
2001-07-17 11:21 ` Daniel Jacobowitz [this message]
2001-07-17 11:46 ` Andrew Cagney
2001-07-17 10:36 ` Quality Quorum
2001-07-16 13:05 ` parcelling up struct gdbarch Daniel Jacobowitz
2001-07-16 15:15 ` Andrew Cagney
2001-07-16 15:49 ` Daniel Jacobowitz
2001-07-17 10:46 ` Andrew Cagney
2001-07-17 11:03 ` Daniel Jacobowitz
2001-07-17 11:37 ` Andrew Cagney
2001-07-18 13:21 ` Daniel Jacobowitz
2001-07-18 22:53 ` Andrew Cagney
2001-07-18 23:22 ` Daniel Jacobowitz
2001-07-19 0:23 ` Daniel Jacobowitz
2001-07-19 7:51 ` Andrew Cagney
2001-07-19 7:44 ` Andrew Cagney
2001-07-18 8:09 ` Andrew Cagney
2001-07-16 23:37 gdbserver (was Re: parcelling up struct gdbarch) Korbel, Michal
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=20010717112123.A19942@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=ac131313@cygnus.com \
--cc=gautier@email.enst.fr \
--cc=gdb@sources.redhat.com \
--cc=jtc@redback.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