X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Fnto-x86-low.c;h=cfbe7ba6d810c1f116a833797f5134cd71a7f687;hb=1163a4b7a38a79ebd153dc5ee76ce93877d21dbd;hp=a7f8f6725862c4f6b5dd6ea8fab730eb2ecad23b;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdb/gdbserver/nto-x86-low.c b/gdb/gdbserver/nto-x86-low.c
index a7f8f67258..cfbe7ba6d8 100644
--- a/gdb/gdbserver/nto-x86-low.c
+++ b/gdb/gdbserver/nto-x86-low.c
@@ -1,6 +1,6 @@
/* QNX Neutrino specific low level interface, for the remote server
for GDB.
- Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009-2019 Free Software Foundation, Inc.
This file is part of GDB.
@@ -17,17 +17,15 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-
+#include "server.h"
#include "nto-low.h"
#include "regdef.h"
#include "regcache.h"
#include
-
-
-/* Definition auto generated from reg-i386.dep. */
-extern void init_registers_i386 ();
-extern struct reg *regs_i386;
+#include "common/x86-xstate.h"
+#include "arch/i386.h"
+#include "x86-tdesc.h"
const unsigned char x86_breakpoint[] = { 0xCC };
#define x86_breakpoint_len 1
@@ -89,8 +87,13 @@ nto_x86_register_offset (int gdbregno)
static void
nto_x86_arch_setup (void)
{
- init_registers_i386 ();
the_low_target.num_regs = 16;
+ struct target_desc *tdesc
+ = i386_create_target_description (X86_XSTATE_SSE_MASK, false, false);
+
+ init_target_desc (tdesc, i386_expedite_regs);
+
+ nto_tdesc = tdesc;
}
struct nto_target_ops the_low_target =