projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update "disassemble" help
[binutils-gdb.git]
/
gdb
/
amd64-windows-nat.c
diff --git
a/gdb/amd64-windows-nat.c
b/gdb/amd64-windows-nat.c
index fd79bfc16d2850ff91eade9afa56f0a902eb8745..6f185ad15becde9f652be4d73fd776cbdd02f12d 100644
(file)
--- a/
gdb/amd64-windows-nat.c
+++ b/
gdb/amd64-windows-nat.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2008-20
17
Free Software Foundation, Inc.
+/* Copyright (C) 2008-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-23,7
+23,7
@@
#include <windows.h>
#define context_offset(x) (offsetof (CONTEXT, x))
#include <windows.h>
#define context_offset(x) (offsetof (CONTEXT, x))
-
static const int
mappings[] =
+
const int amd64_
mappings[] =
{
context_offset (Rax),
context_offset (Rbx),
{
context_offset (Rax),
context_offset (Rbx),
@@
-89,19
+89,15
@@
static const int mappings[] =
/* segment_register_p_ftype implementation for amd64. */
/* 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;
}
amd64_windows_segment_register_p (int regnum)
{
return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
}
-/* -Wmissing-prototypes */
-extern initialize_file_ftype _initialize_amd64_windows_nat;
-
+void _initialize_amd64_windows_nat ();
void
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);
}
x86_set_debug_register_length (8);
}