This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Add "reason" for SIGNAL_RECEIVED
- To: <gdb-patches at sources dot redhat dot com>
- Subject: [PATCH] Add "reason" for SIGNAL_RECEIVED
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Wed, 11 Jul 2001 09:48:09 -0700 (PDT)
I have committed the following patch.
Keith
ChangeLog:
2001-07-11 Keith Seitz <keiths@redhat.com>
* infrun.c (print_stop_reason): Add missing uiout field
"reason" for SIGNAL_RECEIVED case.
Patch:
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.42
diff -u -p -r1.42 infrun.c
--- infrun.c 2001/07/06 03:53:11 1.42
+++ infrun.c 2001/07/11 15:14:25
@@ -3382,6 +3382,8 @@ print_stop_reason (enum inferior_stop_re
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, ", ");