Update ROCm for multi-target support
[deliverable/binutils-gdb.git] / gdb / amd64-windows-nat.c
index 88815a9fc4a64c639d43a60407692dc71c3f62bd..67b869110317e524340979de0ccc72ab3aec8ecc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2008-2020 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 "amd64-tdep.h"
 
 #include <windows.h>
 
@@ -85,8 +87,18 @@ static const int mappings[] =
 };
 #undef context_offset
 
+/* segment_register_p_ftype implementation for amd64.  */
+
+static int
+amd64_windows_segment_register_p (int regnum)
+{
+  return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
+}
+
 void
 _initialize_amd64_windows_nat (void)
 {
-  win32_set_context_register_offsets (mappings);
+  windows_set_context_register_offsets (mappings);
+  windows_set_segment_register_p (amd64_windows_segment_register_p);
+  x86_set_debug_register_length (8);
 }
This page took 0.029099 seconds and 4 git commands to generate.