This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MIPS Linux signals
- From: Michael Eager <eager at eagerm dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 21 May 2012 07:50:57 -0700
- Subject: Re: MIPS Linux signals
- References: <4FB850CA.7090701@eagerm.com> <4FBA2111.8010801@redhat.com>
On 05/21/2012 04:03 AM, Pedro Alves wrote:
On 05/20/2012 03:02 AM, Michael Eager wrote:
4 -- Do the multiple layers of wrappers around target_
signal_{to,from}_host in signals.c serve any purpose?
Can you be more specific? What multiple layers?
target_signal_to_host() is a wrapper around do_target_signal_to_host().
target_signal_to_host_p() is a wrapper around do_target_signal_to_host().
This appears to be only used in gdbserver, where, on MIPS, it will
return the wrong result. Incidentally, gdbserver on MIPS calls
the X86 target_signal_to_host() to translate signals. This seems
confused. If gdb is translating internal signal numbers to the
target signal numbers, then this seems to be a second translation.
default_target_signal_to_host() is a wrapper around target_signal_to_host().
default_target_signal_from_host() is a wrapper around target_signal_from_host().
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077