Re: MIPS Linux signals

Michael Eager
2012-05-21T14:51:12Z

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