aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.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
commitad97bfc5332dddb57e0475459f0dfeed5ed8ccfd (patch)
treeb13e6828241417a1bf5a16709becdcc02250f855 /gdb/corelow.c
parent272bb05cc59ccfbb15f9e496d4d2ec243e08473c (diff)
downloadbinutils-ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd.zip
binutils-ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd.tar.gz
binutils-ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd.tar.bz2
Report architecture-specific signal information for core files.
When opening a core file, if the process terminated due to a signal, invoke the gdbarch report_signal_info hook to report architecture-specific information about the signal. gdb/ChangeLog: * corelow.c (core_target_open): Invoke gdbarch report_signal_info hook if present.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index b6a12c0..3958af1 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -416,8 +416,11 @@ core_target_open (const char *arg, int from_tty)
siggy)
: gdb_signal_from_host (siggy));
- printf_filtered (_("Program terminated with signal %s, %s.\n"),
+ printf_filtered (_("Program terminated with signal %s, %s"),
gdb_signal_to_name (sig), gdb_signal_to_string (sig));
+ if (gdbarch_report_signal_info_p (core_gdbarch))
+ gdbarch_report_signal_info (core_gdbarch, current_uiout, sig);
+ printf_filtered (_(".\n"));
/* Set the value of the internal variable $_exitsignal,
which holds the signal uncaught by the inferior. */