aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/lynx-i386-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/lynx-i386-low.c')
-rw-r--r--gdb/gdbserver/lynx-i386-low.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/gdbserver/lynx-i386-low.c b/gdb/gdbserver/lynx-i386-low.c
index 64e6c0f..57181d6 100644
--- a/gdb/gdbserver/lynx-i386-low.c
+++ b/gdb/gdbserver/lynx-i386-low.c
@@ -19,6 +19,8 @@
#include "lynx-low.h"
#include <limits.h>
#include <sys/ptrace.h>
+#include "x86-xstate.h"
+#include "arch/i386.h"
/* The following two typedefs are defined in a .h file which is not
in the standard include path (/sys/include/family/x86/ucontext.h),
@@ -118,10 +120,6 @@ enum lynx_i386_gdb_regnum
I386_SENTINEL_REGUM
};
-/* Defined in auto-generated file i386.c. */
-extern void init_registers_i386 (void);
-extern const struct target_desc *tdesc_i386;
-
/* The fill_function for the general-purpose register set. */
static void
@@ -295,8 +293,7 @@ lynx_i386_store_fpregset (struct regcache *regcache, const char *buf)
static void
lynx_i386_arch_setup (void)
{
- init_registers_i386 ();
- lynx_tdesc = tdesc_i386;
+ lynx_tdesc = i386_create_target_description (X86_XSTATE_SSE_MASK, false);
}
/* Description of all the x86-lynx register sets. */