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 | 4cec0c66899aed1eff0c5ef844e9bf658ab2b2af (patch) | |
tree | fb51ce33b1511395c6d3864236e0ba5900f49766 /gdb/gdbarch.c | |
parent | 0e42f66a30d06654b47147e885f35e56211bc3c2 (diff) | |
download | gdb-4cec0c66899aed1eff0c5ef844e9bf658ab2b2af.zip gdb-4cec0c66899aed1eff0c5ef844e9bf658ab2b2af.tar.gz gdb-4cec0c66899aed1eff0c5ef844e9bf658ab2b2af.tar.bz2 |
Retire the now-unused gdbarch handle_segmentation_fault hook.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* gdbarch.sh (handle_segmentation_fault): Remove method.
* infrun.c (handle_segmentation_fault): Remove.
(print_signal_received_reason): Remove call to
handle_segmentation_fault.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index d393e7a..fd5b030 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -191,7 +191,6 @@ struct gdbarch int num_pseudo_regs; gdbarch_ax_pseudo_register_collect_ftype *ax_pseudo_register_collect; gdbarch_ax_pseudo_register_push_stack_ftype *ax_pseudo_register_push_stack; - gdbarch_handle_segmentation_fault_ftype *handle_segmentation_fault; gdbarch_report_signal_info_ftype *report_signal_info; int sp_regnum; int pc_regnum; @@ -556,7 +555,6 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of num_pseudo_regs, invalid_p == 0 */ /* Skip verify of ax_pseudo_register_collect, has predicate. */ /* Skip verify of ax_pseudo_register_push_stack, has predicate. */ - /* Skip verify of handle_segmentation_fault, has predicate. */ /* Skip verify of report_signal_info, has predicate. */ /* Skip verify of sp_regnum, invalid_p == 0 */ /* Skip verify of pc_regnum, invalid_p == 0 */ @@ -1089,12 +1087,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: half_format = %s\n", pformat (gdbarch->half_format)); fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_handle_segmentation_fault_p() = %d\n", - gdbarch_handle_segmentation_fault_p (gdbarch)); - fprintf_unfiltered (file, - "gdbarch_dump: handle_segmentation_fault = <%s>\n", - host_address_to_string (gdbarch->handle_segmentation_fault)); - fprintf_unfiltered (file, "gdbarch_dump: has_dos_based_file_system = %s\n", plongest (gdbarch->has_dos_based_file_system)); fprintf_unfiltered (file, @@ -2098,30 +2090,6 @@ set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch *gdbarch, } int -gdbarch_handle_segmentation_fault_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->handle_segmentation_fault != NULL; -} - -void -gdbarch_handle_segmentation_fault (struct gdbarch *gdbarch, struct ui_out *uiout) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->handle_segmentation_fault != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_handle_segmentation_fault called\n"); - gdbarch->handle_segmentation_fault (gdbarch, uiout); -} - -void -set_gdbarch_handle_segmentation_fault (struct gdbarch *gdbarch, - gdbarch_handle_segmentation_fault_ftype handle_segmentation_fault) -{ - gdbarch->handle_segmentation_fault = handle_segmentation_fault; -} - -int gdbarch_report_signal_info_p (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); |