X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fi386-windows-nat.c;h=7339e4e50900c086e46aee1cbfe7bc9bf52c1464;hb=5430098f1807e084fe4ff5057040d68435f3d8a2;hp=a22d6e8942796b0f35906a16ec790aefcc4f29de;hpb=7e63b4e466c57fbcaaf1caa1ca7be1a8ed129934;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdb/i386-windows-nat.c b/gdb/i386-windows-nat.c
index a22d6e8942..7339e4e509 100644
--- a/gdb/i386-windows-nat.c
+++ b/gdb/i386-windows-nat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2008-2017 Free Software Foundation, Inc.
This file is part of GDB.
@@ -16,7 +16,9 @@
along with this program. If not, see . */
#include "defs.h"
-#include "win32-nat.h"
+#include "windows-nat.h"
+#include "x86-nat.h"
+#include "i386-tdep.h"
#include
@@ -69,8 +71,21 @@ 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;
+}
+
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_i386_windows_nat;
+
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);
}