Skip to content

Commit

Permalink
debugger: Report the signal name when the process received one
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Feb 7, 2016
1 parent 081c664 commit dc049f4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion debugger/src/dbm_gdb.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit dc049f4

Please sign in to comment.