summaryrefslogtreecommitdiffstats
path: root/misplays.c
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-09-28 15:36:11 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:31:08 -0400
commit888c7ed10d7d82079c7266f4899c1c6f0c805832 (patch)
treeb56905892ed4a4626b6c20793930175f3ecdb529 /misplays.c
parent41945242524f9ecc795138fdb5beb31362f7826a (diff)
downloadmisplays-888c7ed10d7d82079c7266f4899c1c6f0c805832.tar.gz
misplays-888c7ed10d7d82079c7266f4899c1c6f0c805832.zip
Display name of pending signal
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'misplays.c')
-rw-r--r--misplays.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misplays.c b/misplays.c
index 272a60a..62d89e7 100644
--- a/misplays.c
+++ b/misplays.c
@@ -1,4 +1,5 @@
#include <signal.h>
+#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ptrace.h>
@@ -133,7 +134,7 @@ static void disasm(struct thread *dbg, PANEL *pan) {
static void info_update(struct thread *th, PANEL *pan) {
pclear(pan);
pprintw(pan, "TID: %li\n", (long)th->id);
- pprintw(pan, "%s (%i)\n", th->status, th->signal);
+ pprintw(pan, "%s (%i: %s)\n", th->status, th->signal, strsignal(th->signal));
list_breakpoints(th, pan);
describe_states(th, pan);
dump_registers(th, pan);