2019-12-18 Anthony Green <green@moxielogic.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / nto-x86-low.c
index a7f8f6725862c4f6b5dd6ea8fab730eb2ecad23b..b51f424fb46fd4507fd76fbd7ecef8b89de01d82 100644 (file)
@@ -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.
 
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-
+#include "server.h"
 #include "nto-low.h"
 #include "regdef.h"
 #include "regcache.h"
 
 #include <x86/context.h>
-
-
-/* Definition auto generated from reg-i386.dep.  */
-extern void init_registers_i386 ();
-extern struct reg *regs_i386;
+#include "gdbsupport/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 =
This page took 0.023615 seconds and 4 git commands to generate.