From: Joel Brobecker Date: Thu, 21 Oct 2004 17:26:49 +0000 (+0000) Subject: * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. X-Git-Tag: gdb_6_3-20041109-release~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9b652f71b047f1163bbe7a72fe92b8217d4619a;p=thirdparty%2Fbinutils-gdb.git * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. (ARCH_SET_FS): Likewise. (ARCH_GET_FS): Likewise. (ARCH_GET_GS): Likewise. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 96df7e507ee..ca20d3840eb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,10 @@ +2004-10-21 Joel Brobecker + + * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. + (ARCH_SET_FS): Likewise. + (ARCH_GET_FS): Likewise. + (ARCH_GET_GS): Likewise. + 2004-10-16 Daniel Jacobowitz * linux-i386-low.c (ps_get_thread_area): New. diff --git a/gdb/gdbserver/linux-x86-64-low.c b/gdb/gdbserver/linux-x86-64-low.c index 45f00b0c880..fa7440dbd2a 100644 --- a/gdb/gdbserver/linux-x86-64-low.c +++ b/gdb/gdbserver/linux-x86-64-low.c @@ -47,6 +47,15 @@ #define PTRACE_ARCH_PRCTL 30 #endif +/* The following definitions come from prctl.h, but may be absent + for certain configurations. */ +#ifndef ARCH_GET_FS +#define ARCH_SET_GS 0x1001 +#define ARCH_SET_FS 0x1002 +#define ARCH_GET_FS 0x1003 +#define ARCH_GET_GS 0x1004 +#endif + static int x86_64_regmap[] = { RAX * 8, RBX * 8, RCX * 8, RDX * 8, RSI * 8, RDI * 8, RBP * 8, RSP * 8,