summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-04-24 13:32:58 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:32:58 -0400
commitc0a76847fbabd5742ec4b678b9588f394fbefc78 (patch)
treeb80b15c03034aeea0376766bc87cc53563138398 /helpers.h
parent1b5f8d2e5a118a80a4373a7be1ca4e4eceebf7be (diff)
parentb86dd03abe59b6b410de4da3e44f62e62599c5ce (diff)
downloadmisplays-c0a76847fbabd5742ec4b678b9588f394fbefc78.tar.gz
misplays-c0a76847fbabd5742ec4b678b9588f394fbefc78.zip
Merge branch 'threads'
This branch adds initial support for multithreaded targets, as well as forking and exec syscalls. All of the bugs from initial testing are fixed so far. * threads: (25 commits) Don't spin waiting to interrupt zombie process Allow termination and exec events to propagate immediately Implement support for PTRACE_EVENT_FORK and ui Handle PTRACE_EVENT_EXIT to capture a final state snapshot Detect out-of-band thread exec state changes to prevent deadlock Enable user creation of thread-specific breakpoints Add orig_rax to register display Tweak SCHEDULER_DELAY for use with installing breakpoints Ignore breakpoints during singlestep Fix bug with cleaning temporary breakpoints Independent thread control refactor Multithread version 3 Add strict_strtoul Prevent lingering traps after detach Handle PTRACE_EVENT_EXEC Workaround SIGSTOP on child process startup setpgid is redundant with setsid and causes an error Display name of pending signal dbg_realcont for testing purposes Display installed status of breakpoints ...
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index f01e024..a415a6c 100644
--- a/helpers.h
+++ b/helpers.h
@@ -4,7 +4,10 @@
#include <panel.h>
#include <stddef.h>
+#define KEY_ESCAPE 0x1b
+
extern void *xmalloc(size_t size);
+extern unsigned long strict_strtoul(const char *nptr, int base);
extern void cursinit(void);
extern void cursupdate(void);
@@ -13,3 +16,5 @@ extern void delpan(PANEL *pan);
extern void reset_panel(PANEL *pan, int h, int w, int y, int x);
extern int pprintw(PANEL *pan, const char *fmt, ...);
extern int pclear(PANEL *pan);
+extern int pattron(PANEL *pan, int attrs);
+extern int pattroff(PANEL *pan, int attrs);