Introduce generic_value_print_ptr
[deliverable/binutils-gdb.git] / gdb / amd64-windows-nat.c
index dcefa9fead8e19fe3e234104c4a956344b2201f6..6f185ad15becde9f652be4d73fd776cbdd02f12d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
+/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-
-/* Standard C includes.  */
-#include <windows.h>
-
-/* Local non-gdb includes.  */
-#include "amd64-tdep.h"
 #include "windows-nat.h"
 #include "x86-nat.h"
+#include "amd64-tdep.h"
+
+#include <windows.h>
 
 #define context_offset(x) (offsetof (CONTEXT, x))
-static const int mappings[] =
+const int amd64_mappings[] =
 {
   context_offset (Rax),
   context_offset (Rbx),
@@ -92,16 +89,15 @@ static const int mappings[] =
 
 /* segment_register_p_ftype implementation for amd64.  */
 
-static int
+int
 amd64_windows_segment_register_p (int regnum)
 {
   return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
 }
 
+void _initialize_amd64_windows_nat ();
 void
-_initialize_amd64_windows_nat (void)
+_initialize_amd64_windows_nat ()
 {
-  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.026162 seconds and 4 git commands to generate.