| 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>. */
|
|
|
|
|