projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
gdb
/
i386-windows-nat.c
diff --git
a/gdb/i386-windows-nat.c
b/gdb/i386-windows-nat.c
index 9efe18465dc39078aa439309a9860a3207fc7249..3091fc362825aa2cac685301f99145f608952139 100644
(file)
--- a/
gdb/i386-windows-nat.c
+++ b/
gdb/i386-windows-nat.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2008-20
18
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.
@@
-22,8
+22,11
@@
#include <windows.h>
#include <windows.h>
-#define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
-static const int mappings[] =
+#ifdef __x86_64__
+#define CONTEXT WOW64_CONTEXT
+#endif
+#define context_offset(x) ((int)(size_t)&(((CONTEXT *)NULL)->x))
+const int i386_mappings[] =
{
context_offset (Eax),
context_offset (Ecx),
{
context_offset (Eax),
context_offset (Ecx),
@@
-70,19
+73,21
@@
static const int mappings[] =
context_offset (ExtendedRegisters[24])
};
#undef context_offset
context_offset (ExtendedRegisters[24])
};
#undef context_offset
+#undef CONTEXT
/* segment_register_p_ftype implementation for x86. */
/* segment_register_p_ftype implementation for x86. */
-
static
int
+int
i386_windows_segment_register_p (int regnum)
{
return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
}
i386_windows_segment_register_p (int regnum)
{
return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
}
+void _initialize_i386_windows_nat ();
void
void
-_initialize_i386_windows_nat (
void
)
+_initialize_i386_windows_nat ()
{
{
- windows_set_context_register_offsets (mappings);
- windows_set_segment_register_p (i386_windows_segment_register_p);
+#ifndef __x86_64__
x86_set_debug_register_length (4);
x86_set_debug_register_length (4);
+#endif
}
}
This page took
0.026082 seconds
and
4
git commands to generate.