[RFC/PATCH] Add new internal variable $_signo

Sergio Durigan Junior sergiodj@redhat.com
Sat Jun 15 06:46:00 GMT 2013


On Friday, June 14 2013, Pedro Alves wrote:

> gdb_signal_to_host is the fallback (and having a fallback is sort of a
> hack).  The right signal number is the target's not the host's.  We
> have gdbarch_gdb_signal_from_target for the opposite direction, but not
> gdbarch_gdb_signal_to_target...  Having to bake the target OS's signal
> numbers into GDB is a bit unfortunate, though we could get around it
> at some point if we wanted by extending the RSP, and/or adding a python
> hook.

I was looking for a target variant but found none.  I'm not sure what
you mean with your comment.  Are you suggesting that I take care of this
as well?

In the meantime, I will leave the code as-is, i.e., without doing any
kind of conversion on infrun.c

-- 
Sergio



More information about the Gdb-patches mailing list