This is the mail archive of the gdb-patches@sources.redhat.com 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: gdbserver build broken on amd64-linux


> 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...
In any case, I checked in this patch, since it can only be correct.

2004-10-20  Joel Brobecker  <brobecker@gnat.com>

        * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
        (ARCH_SET_FS): Likewise.
        (ARCH_GET_FS): Likewise.
        (ARCH_GET_GS): Likewise.

Thanks,
-- 
Joel

Attachment: linux-x86-64-low.c.diff
Description: Text document


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