diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-23 19:40:40 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-23 19:40:40 +0200 |
commit | 622581f4db4ae4ef8932984a4d1c4935ca7f61ef (patch) | |
tree | 9de3198e67bdfe8904b912e76e4215cc0b908b49 /sysdeps/linux-gnu/trace.c | |
parent | e577a10e73b41e2c68fff7e8d89c22dfb9378b99 (diff) | |
download | ltrace-622581f4db4ae4ef8932984a4d1c4935ca7f61ef.tar.gz |
Use the right process to insert breakpoints for stepping over atomic block
Diffstat (limited to 'sysdeps/linux-gnu/trace.c')
-rw-r--r-- | sysdeps/linux-gnu/trace.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c index 9406e42..809714f 100644 --- a/sysdeps/linux-gnu/trace.c +++ b/sysdeps/linux-gnu/trace.c @@ -590,8 +590,7 @@ remove_atomic_breakpoints(struct Process *proc) int i; for (i = 0; i < ct; ++i) if (self->atomic_skip_bp_addrs[i] != 0) { - delete_breakpoint(proc->leader, - self->atomic_skip_bp_addrs[i]); + delete_breakpoint(proc, self->atomic_skip_bp_addrs[i]); self->atomic_skip_bp_addrs[i] = 0; } } @@ -618,7 +617,7 @@ atomic_singlestep_add_bp(void *addr, void *data) .on_hit = atomic_singlestep_bp_on_hit, }; struct breakpoint *bp - = insert_breakpoint(proc->leader, addr, NULL); + = insert_breakpoint(proc, addr, NULL); breakpoint_set_callbacks(bp, &cbs); return 0; } |