| commit | 55ac932f2802f85c53792153ac909dcd8a690c5c | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Tue Mar 27 03:07:35 2012 +0200 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Apr 19 01:22:33 2012 +0200 |
| tree | b86e88be70686a03a33b2d009ba51dceafe279f3 | |
| parent | bb790604dcaa546737417bf7df8587b3096fa6a5 [diff] [blame] |
Add breakpoint_set_callbacks, split off breakpoint_init, adjust callers
diff --git a/proc.c b/proc.c index a79ae2b..0d23bcc 100644 --- a/proc.c +++ b/proc.c
@@ -143,11 +143,11 @@ * clone itself. */ struct breakpoint *clone = malloc(sizeof(*clone)); if (clone == NULL - || breakpoint_init(clone, data->new_proc, addr, - libsym, bp->cbs) < 0) { + || breakpoint_init(clone, data->new_proc, addr, libsym) < 0) { data->error = -1; return; } + breakpoint_set_callbacks(clone, bp->cbs); } int