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/testsuite: Don't allow paths to appear in test name
[deliverable/binutils-gdb.git]
/
gdb
/
amd64-windows-nat.c
diff --git
a/gdb/amd64-windows-nat.c
b/gdb/amd64-windows-nat.c
index bc2c0475ebcd26cd42cb0254eb73116e73a57391..378262a56e35d833722d723390d37b44bcf6243b 100644
(file)
--- a/
gdb/amd64-windows-nat.c
+++ b/
gdb/amd64-windows-nat.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2008-201
2
Free Software Foundation, Inc.
+/* Copyright (C) 2008-201
9
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-17,7
+17,9
@@
#include "defs.h"
#include "windows-nat.h"
#include "defs.h"
#include "windows-nat.h"
-#include "i386-nat.h"
+#include "x86-nat.h"
+#include "amd64-tdep.h"
+
#include <windows.h>
#define context_offset(x) (offsetof (CONTEXT, x))
#include <windows.h>
#define context_offset(x) (offsetof (CONTEXT, x))
@@
-85,12
+87,18
@@
static const int mappings[] =
};
#undef context_offset
};
#undef context_offset
-/* -Wmissing-prototypes */
-extern initialize_file_ftype _initialize_amd64_windows_nat;
+/* 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)
{
windows_set_context_register_offsets (mappings);
void
_initialize_amd64_windows_nat (void)
{
windows_set_context_register_offsets (mappings);
- i386_set_debug_register_length (8);
+ windows_set_segment_register_p (amd64_windows_segment_register_p);
+ x86_set_debug_register_length (8);
}
}
This page took
0.028984 seconds
and
4
git commands to generate.