Drop useless argument from breakpoint_clone
diff --git a/breakpoints.c b/breakpoints.c
index 41fac5d..8b5532a 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -121,7 +121,7 @@
#endif
static void
-breakpoint_init_base(struct breakpoint *bp, struct process *proc,
+breakpoint_init_base(struct breakpoint *bp,
arch_addr_t addr, struct library_symbol *libsym)
{
bp->cbs = NULL;
@@ -139,7 +139,7 @@
breakpoint_init(struct breakpoint *bp, struct process *proc,
arch_addr_t addr, struct library_symbol *libsym)
{
- breakpoint_init_base(bp, proc, addr, libsym);
+ breakpoint_init_base(bp, addr, libsym);
return arch_breakpoint_init(proc, bp);
}
@@ -161,7 +161,7 @@
int
breakpoint_clone(struct breakpoint *retp, struct process *new_proc,
- struct breakpoint *bp, struct process *old_proc)
+ struct breakpoint *bp)
{
struct library_symbol *libsym = NULL;
if (bp->libsym != NULL) {
@@ -169,7 +169,7 @@
assert(rc == 0);
}
- breakpoint_init_base(retp, new_proc, bp->addr, libsym);
+ breakpoint_init_base(retp, bp->addr, libsym);
memcpy(retp->orig_value, bp->orig_value, sizeof(bp->orig_value));
retp->enabled = bp->enabled;
if (arch_breakpoint_clone(retp, bp) < 0)