Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: gdb/amd64-windows-nat.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/amd64-tdep.c ('k') | gdb/amd64-windows-tdep.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/amd64-windows-nat.c
diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c
index 49119d10fa395d5492104191545d9f0fc8ff5645..e5fb0e00318d8ef29eaf6d639e6311c7b2f59e54 100644
--- a/gdb/amd64-windows-nat.c
+++ b/gdb/amd64-windows-nat.c
@@ -18,6 +18,8 @@
#include "defs.h"
#include "windows-nat.h"
#include "i386-nat.h"
+#include "amd64-tdep.h"
+
#include <windows.h>
#define context_offset(x) (offsetof (CONTEXT, x))
@@ -85,9 +87,21 @@ static const int mappings[] =
};
#undef context_offset
+/* 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;
+}
+
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_amd64_windows_nat;
+
void
_initialize_amd64_windows_nat (void)
{
windows_set_context_register_offsets (mappings);
+ windows_set_segment_register_p (amd64_windows_segment_register_p);
i386_set_debug_register_length (8);
}
« no previous file with comments | « gdb/amd64-tdep.c ('k') | gdb/amd64-windows-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698