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

Unified Diff: gdb/i386-linux-tdep.c

Issue 14757004: Fix nacl-gdb so that it can read ELF core dump files (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Retry upload Created 7 years, 7 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/i386-linux-tdep.h ('k') | gdb/nacl-tdep.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/i386-linux-tdep.c
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 8475d7a8e1062e36064e84a1023edc38f7c9d74a..45e68519f38c2117a78c2c3187d75fed0b7f4f92 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -704,6 +704,14 @@ i386_linux_displaced_step_copy_insn (struct gdbarch *gdbarch,
return closure;
}
+void
+i386_linux_init_gregset (struct gdbarch_tdep *tdep)
+{
+ tdep->gregset_reg_offset = i386_linux_gregset_reg_offset;
+ tdep->gregset_num_regs = ARRAY_SIZE (i386_linux_gregset_reg_offset);
+ tdep->sizeof_gregset = 17 * 4;
+}
+
static void
i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@ -742,9 +750,7 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->register_reggroup_p = i386_linux_register_reggroup_p;
- tdep->gregset_reg_offset = i386_linux_gregset_reg_offset;
- tdep->gregset_num_regs = ARRAY_SIZE (i386_linux_gregset_reg_offset);
- tdep->sizeof_gregset = 17 * 4;
+ i386_linux_init_gregset (tdep);
tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */
« no previous file with comments | « gdb/i386-linux-tdep.h ('k') | gdb/nacl-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698