This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/PATCH] Add new internal variable $_signo


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]