diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-07-21 17:28:16 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-07-21 17:28:16 -0700 |
commit | 77bdfeb2e6041b1d228c3ba84233650993d435de (patch) | |
tree | d3a6f4b6a005ac1634c6dc65f50840b844c694f4 /gdb/i386-linux-tdep.h | |
parent | ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd (diff) | |
download | gdb-77bdfeb2e6041b1d228c3ba84233650993d435de.zip gdb-77bdfeb2e6041b1d228c3ba84233650993d435de.tar.gz gdb-77bdfeb2e6041b1d228c3ba84233650993d435de.tar.bz2 |
Migrate the x86 MPX handle_segmentation_fault hook to report_signal_info.
gdb/ChangeLog:
* amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
i386_linux_report_signal_info instead of
i386_linux_handle_segmentation_fault.
* i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
to i386_linux_report_signal_info and add siggnal argument.
(i386_linux_init_abi): Use i386_linux_report_signal_info instead
of i386_linux_handle_segmentation_fault.
* i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
to i386_linux_report_signal_info and add siggnal argument.
Diffstat (limited to 'gdb/i386-linux-tdep.h')
-rw-r--r-- | gdb/i386-linux-tdep.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/i386-linux-tdep.h b/gdb/i386-linux-tdep.h index b543526..c3bfdcd 100644 --- a/gdb/i386-linux-tdep.h +++ b/gdb/i386-linux-tdep.h @@ -39,8 +39,9 @@ extern uint64_t i386_linux_core_read_xcr0 (bfd *abfd); /* Handle and display information related to the MPX bound violation to the user. */ -extern void i386_linux_handle_segmentation_fault (struct gdbarch *gdbarch, - struct ui_out *uiout); +extern void i386_linux_report_signal_info (struct gdbarch *gdbarch, + struct ui_out *uiout, + enum gdb_signal siggnal); /* Return the target description according to XCR0. */ extern const struct target_desc *i386_linux_read_description (uint64_t xcr0); |