diff options
Diffstat (limited to 'gdb/amd64-windows-nat.c')
-rw-r--r-- | gdb/amd64-windows-nat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c index 5b2c261..6f185ad 100644 --- a/gdb/amd64-windows-nat.c +++ b/gdb/amd64-windows-nat.c @@ -23,7 +23,7 @@ #include <windows.h> #define context_offset(x) (offsetof (CONTEXT, x)) -static const int mappings[] = +const int amd64_mappings[] = { context_offset (Rax), context_offset (Rbx), @@ -89,7 +89,7 @@ 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; @@ -99,7 +99,5 @@ 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); } |