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: [0/2] Inspect extra signal information


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?


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