This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/PATCH] Add new internal variable $_signo
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>, "'GDB Patches'" <gdb-patches at sourceware dot org>
- Date: Fri, 14 Jun 2013 17:35:53 -0300
- Subject: Re: [RFC/PATCH] Add new internal variable $_signo
- References: <m3obb9y1aw dot fsf at redhat dot com> <002801ce68dd$845cd2e0$8d1678a0$ at muller@ics-cnrs.unistra.fr> <m3zjuswp4k dot fsf at redhat dot com> <51BB7B58 dot 9030007 at redhat dot com>
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