aboutsummaryrefslogtreecommitdiff
path: root/breakpoints.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-30 23:29:27 +0100
committerPetr Machata <pmachata@redhat.com>2012-10-30 23:29:27 +0100
commit1c79025768a4403e016cc59d7f41b266e868c9e6 (patch)
tree0938d8fe0ec0977171eeb6008aab5d154456bbe2 /breakpoints.c
parentc06f23d2803c7744f3d2cd1fb3e54886d9e41ddf (diff)
downloadltrace-1c79025768a4403e016cc59d7f41b266e868c9e6.tar.gz
Fix cross-tracing PIE binaries
Diffstat (limited to 'breakpoints.c')
-rw-r--r--breakpoints.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/breakpoints.c b/breakpoints.c
index d77fefc..258be93 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -346,8 +346,9 @@ entry_breakpoint_init(struct Process *proc,
struct entry_breakpoint *bp, arch_addr_t addr,
struct library *lib)
{
- int err;
- if ((err = breakpoint_init(&bp->super, proc, addr, NULL)) < 0)
+ assert(addr != 0);
+ int err = breakpoint_init(&bp->super, proc, addr, NULL);
+ if (err < 0)
return err;
static struct bp_callbacks entry_callbacks = {