[geany/geany-plugins] dc049f: debugger: Report the signal name when the process received one

Colomban Wendling git-noreply at xxxxx
Sun Feb 7 13:55:31 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 07 Feb 2016 13:55:31 UTC
Commit:      dc049f4cf8ed3263d3da56f2d95c667edffb4468
             https://github.com/geany/geany-plugins/commit/dc049f4cf8ed3263d3da56f2d95c667edffb4468

Log Message:
-----------
debugger: Report the signal name when the process received one


Modified Paths:
--------------
    debugger/src/dbm_gdb.c

Modified: debugger/src/dbm_gdb.c
9 lines changed, 8 insertions(+), 1 deletions(-)
===================================================================
@@ -519,7 +519,14 @@ static gboolean on_read_from_gdb(GIOChannel * src, GIOCondition cond, gpointer d
 			else
 			{
 				if (!requested_interrupt)
-					dbg_cbs->report_error(_("Program received a signal"));
+				{
+					gchar *msg = g_strdup_printf(_("Program received signal %s (%s)"),
+					                             (gchar *) gdb_mi_result_var(record->first, "signal-name", GDB_MI_VAL_STRING),
+					                             (gchar *) gdb_mi_result_var(record->first, "signal-meaning", GDB_MI_VAL_STRING));
+
+					dbg_cbs->report_error(msg);
+					g_free(msg);
+				}
 				else
 					requested_interrupt = FALSE;
 			}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list