From e68b37e4f8af8051ab3ac55b49a742a46b98081b Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 7 Oct 2023 03:32:24 -0400 Subject: Enable user creation of thread-specific breakpoints Signed-off-by: Malfurious --- misplays.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misplays.c b/misplays.c index 6391d98..cda2abb 100644 --- a/misplays.c +++ b/misplays.c @@ -303,16 +303,21 @@ int main(int argc, char **argv) { char *t = cmd; int en = 1; + pid_t tid = 0; if (t[0] == '!') { en = -1; t++; } else if (t[0] == '#') { en = 0; t++; + } else if (t[0] == '@') { + tid = th->id; + t++; } unsigned long address = strtoul(t, NULL, 0); struct breakpoint *b = add_breakpoint(th->proc, address); b->enabled = en; + b->tid = tid; break; } } else { -- cgit v1.2.3