summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misplays.c5
1 files changed, 5 insertions, 0 deletions
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 {