diff options
Diffstat (limited to 'gdb/i386-linux-tdep.c')
-rw-r--r-- | gdb/i386-linux-tdep.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index efbde6a..34e1391 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -1044,6 +1044,8 @@ int i386_linux_gregset_reg_offset[] = -1, -1, -1, -1, -1, -1, -1, -1, /* k0 ... k7 (AVX512) */ -1, -1, -1, -1, -1, -1, -1, -1, /* zmm0 ... zmm7 (AVX512) */ -1, /* PKRU register */ + -1, /* SSP register. */ + -1, -1, /* fs/gs base registers. */ 11 * 4, /* "orig_eax" */ }; @@ -1105,11 +1107,10 @@ i386_linux_core_read_xsave_info (bfd *abfd, x86_xsave_layout &layout) /* See i386-linux-tdep.h. */ bool -i386_linux_core_read_x86_xsave_layout (struct gdbarch *gdbarch, +i386_linux_core_read_x86_xsave_layout (struct gdbarch *gdbarch, bfd &cbfd, x86_xsave_layout &layout) { - return i386_linux_core_read_xsave_info (current_program_space->core_bfd (), - layout) != 0; + return i386_linux_core_read_xsave_info (&cbfd, layout) != 0; } /* See arch/x86-linux-tdesc.h. */ @@ -1492,6 +1493,9 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) INIT_GDB_FILE (i386_linux_tdep) { + gdb_assert (ARRAY_SIZE (i386_linux_gregset_reg_offset) + == I386_LINUX_NUM_REGS); + gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_LINUX, i386_linux_init_abi); } |