From 84c6c83cbc7569a373a6bb7d4ed588ef06aaf9a3 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Wed, 11 Jul 2001 16:46:57 +0000 Subject: [PATCH] * infrun.c (print_stop_reason): Add missing uiout field "reason" for SIGNAL_RECEIVED case. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5254994c2e5..223682672e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-07-11 Keith Seitz + + * infrun.c (print_stop_reason): Add missing uiout field + "reason" for SIGNAL_RECEIVED case. + 2001-07-11 Mark Kettenis * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H): diff --git a/gdb/infrun.c b/gdb/infrun.c index 8b126db6523..f424477dda5 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3382,6 +3382,8 @@ print_stop_reason (enum inferior_stop_reason stop_reason, int stop_info) annotate_signal (); ui_out_text (uiout, "\nProgram received signal "); annotate_signal_name (); + if (ui_out_is_mi_like_p (uiout)) + ui_out_field_string (uiout, "reason", "signal-received"); ui_out_field_string (uiout, "signal-name", target_signal_to_name (stop_info)); annotate_signal_name_end (); ui_out_text (uiout, ", "); -- 2.39.5