gdbserver build broken on amd64-linux

Daniel Jacobowitz
Thu Oct 21 13:49:00 GMT 2004

On Wed, Oct 20, 2004 at 09:15:13PM -0700, Joel Brobecker wrote:
> > Joel, could you test the #ifndef version and check it in?
> I verified that the attached patch allows gdbserver to build,
> and I also double-checked the values with the ones I have in
> my prctl.h file. But I've never used gdbserver before, and when
> I tried it, I had a failure:
>     (gdb) target remote localhost:2345
>     Remote debugging using localhost:2345
>     Couldn't establish connection to remote target
>     Remote register badly formatted: T0506:0000000000000000;07:c0f1ffbf7f000000;10:2
>     06f55952a000000;
>     here: 0000000;07:c0f1ffbf7f000000;10:206f55952a000000;
> Not sure why there seems to be discrepancy in the protocol...

The host GDB is configured for amd64 rather than i386, right?  And
you've loaded a 64-bit binary using "file"?  That error means GDB
expected a 32-bit register.

Daniel Jacobowitz

More information about the Gdb-patches mailing list