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.
This commit is contained in:
parent
272bb05cc5
commit
ad97bfc533
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue