Suppress ARI warnings for vsprintf
[deliverable/binutils-gdb.git] / gdb / i386-windows-nat.c
index a22d6e8942796b0f35906a16ec790aefcc4f29de..fa85cd1de3e5fab29bb16d6d7e7cfd0ad75f7c52 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -16,7 +16,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "win32-nat.h"
+#include "windows-nat.h"
+#include "x86-nat.h"
+#include "i386-tdep.h"
 
 #include <windows.h>
 
@@ -69,8 +71,18 @@ static const int mappings[] =
 };
 #undef context_offset
 
+/* segment_register_p_ftype implementation for x86.  */
+
+static int
+i386_windows_segment_register_p (int regnum)
+{
+  return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
+}
+
 void
 _initialize_i386_windows_nat (void)
 {
-  win32_set_context_register_offsets (mappings);
+  windows_set_context_register_offsets (mappings);
+  windows_set_segment_register_p (i386_windows_segment_register_p);
+  x86_set_debug_register_length (4);
 }
This page took 0.024195 seconds and 4 git commands to generate.