diff options
author | Malfurious <m@lfurio.us> | 2023-09-28 15:36:11 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-04-24 13:31:08 -0400 |
commit | 888c7ed10d7d82079c7266f4899c1c6f0c805832 (patch) | |
tree | b56905892ed4a4626b6c20793930175f3ecdb529 /misplays.c | |
parent | 41945242524f9ecc795138fdb5beb31362f7826a (diff) | |
download | misplays-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |