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 | ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd (patch) | |
tree | b13e6828241417a1bf5a16709becdcc02250f855 | |
parent | 272bb05cc59ccfbb15f9e496d4d2ec243e08473c (diff) | |
download | gdb-ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd.zip gdb-ad97bfc5332dddb57e0475459f0dfeed5ed8ccfd.tar.gz gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/corelow.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index afdaa74..1bd80b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-07-21 John Baldwin <jhb@FreeBSD.org> + * corelow.c (core_target_open): Invoke gdbarch report_signal_info + hook if present. + +2020-07-21 John Baldwin <jhb@FreeBSD.org> + * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * gdbarch.sh (report_signal_info): New method. 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. */ |