aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-07-21 17:28:16 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2020-07-21 17:28:16 -0700
commit4cec0c66899aed1eff0c5ef844e9bf658ab2b2af (patch)
treefb51ce33b1511395c6d3864236e0ba5900f49766 /gdb/infrun.c
parent0e42f66a30d06654b47147e885f35e56211bc3c2 (diff)
downloadgdb-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/infrun.c')
-rw-r--r--gdb/infrun.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e58b623..ca850f8 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -8243,20 +8243,6 @@ print_exited_reason (struct ui_out *uiout, int exitstatus)
}
}
-/* Some targets/architectures can do extra processing/display of
- segmentation faults. E.g., Intel MPX boundary faults.
- Call the architecture dependent function to handle the fault. */
-
-static void
-handle_segmentation_fault (struct ui_out *uiout)
-{
- struct regcache *regcache = get_current_regcache ();
- struct gdbarch *gdbarch = regcache->arch ();
-
- if (gdbarch_handle_segmentation_fault_p (gdbarch))
- gdbarch_handle_segmentation_fault (gdbarch, uiout);
-}
-
void
print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
{
@@ -8304,9 +8290,6 @@ print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
if (gdbarch_report_signal_info_p (gdbarch))
gdbarch_report_signal_info (gdbarch, uiout, siggnal);
- if (siggnal == GDB_SIGNAL_SEGV)
- handle_segmentation_fault (uiout);
-
annotate_signal_string_end ();
}
uiout->text (".\n");