Re: [0/2] Inspect extra signal information

Doug Evans
2009-02-04T00:17:36Z

On Tue, Feb 3, 2009 at 3:50 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> When connected to a 64-bit gdbserver that is debugging a 32-bit
> inferior, how would gdb know that the binary blob that is coming out
> of TARGET_OBJECT_SIGNAL_INFO has the 64-bit layout, and that it
> needs to be converted? All gdbarchs that we have accessible tell us
> about the inferior arch, which is 32-bit. gdb has no idea that the
> gdbserver is running a 64-bit ptrace.

Hmmm, I'd forgotten the "using gdb compiled for amd64 talking to a
gdbserver compiled for i386" case. Blech. GDB could send a query
request for the necessary info.

OOC, are there other reasons why gdb would want to know which host
gdbserver was compiled for?