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

Unified Diff: gdb/features/i386/x32-linux.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/features/i386/x32-core.xml ('k') | gdb/features/i386/x32-linux.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/features/i386/x32-linux.c
diff --git a/gdb/features/i386/amd64-linux.c b/gdb/features/i386/x32-linux.c
similarity index 96%
copy from gdb/features/i386/amd64-linux.c
copy to gdb/features/i386/x32-linux.c
index 2eb9f96c356df681bfda5c7fc276361594ff0562..b42287dd7a68c14104edada106185274f5e00a35 100644
--- a/gdb/features/i386/amd64-linux.c
+++ b/gdb/features/i386/x32-linux.c
@@ -1,18 +1,18 @@
-/* THIS FILE IS GENERATED. Original: amd64-linux.xml */
+/* THIS FILE IS GENERATED. Original: x32-linux.xml */
#include "defs.h"
#include "osabi.h"
#include "target-descriptions.h"
-struct target_desc *tdesc_amd64_linux;
+struct target_desc *tdesc_x32_linux;
static void
-initialize_tdesc_amd64_linux (void)
+initialize_tdesc_x32_linux (void)
{
struct target_desc *result = allocate_target_description ();
struct tdesc_feature *feature;
struct tdesc_type *field_type, *type;
- set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64"));
+ set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32"));
set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux"));
@@ -52,7 +52,7 @@ initialize_tdesc_amd64_linux (void)
tdesc_create_reg (feature, "r13", 13, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r14", 14, 1, NULL, 64, "int64");
tdesc_create_reg (feature, "r15", 15, 1, NULL, 64, "int64");
- tdesc_create_reg (feature, "rip", 16, 1, NULL, 64, "int64");
+ tdesc_create_reg (feature, "rip", 16, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "eflags", 17, 1, NULL, 32, "i386_eflags");
tdesc_create_reg (feature, "cs", 18, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "ss", 19, 1, NULL, 32, "int32");
@@ -149,5 +149,5 @@ initialize_tdesc_amd64_linux (void)
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.linux");
tdesc_create_reg (feature, "orig_rax", 57, 1, NULL, 64, "int");
- tdesc_amd64_linux = result;
+ tdesc_x32_linux = result;
}
« no previous file with comments | « gdb/features/i386/x32-core.xml ('k') | gdb/features/i386/x32-linux.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698