aboutsummaryrefslogtreecommitdiff
path: root/handle_event.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-03-28 02:44:18 +0200
committerPetr Machata <pmachata@redhat.com>2012-04-19 01:34:04 +0200
commitdb30b10a6af9b206ac829b9003db9c9600120986 (patch)
treefad93ba27174c13fc7856ba005ae807c92a8b3a8 /handle_event.c
parentc67a6e62bc7e95f7f181a51c5b314ef10a6e231e (diff)
downloadltrace-db30b10a6af9b206ac829b9003db9c9600120986.tar.gz
Fix compilation on ppc64
Diffstat (limited to 'handle_event.c')
-rw-r--r--handle_event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/handle_event.c b/handle_event.c
index 1646394..cfb2ad0 100644
--- a/handle_event.c
+++ b/handle_event.c
@@ -612,7 +612,7 @@ handle_breakpoint(Event *event)
if (memcmp(&a, break_insn, BREAKPOINT_LENGTH)) {
sbp->enabled--;
insert_breakpoint(event->proc, addr,
- libsym, 1);
+ libsym);
}
} else {
sbp = dict_find_entry(leader->breakpoints, addr);
@@ -623,7 +623,7 @@ handle_breakpoint(Event *event)
sbp is NULL. */
if (sbp == NULL || addr != sbp->addr) {
insert_breakpoint(event->proc, addr,
- libsym, 1);
+ libsym);
}
}
#elif defined(__mips__)
@@ -635,14 +635,14 @@ handle_breakpoint(Event *event)
sbp = dict_find_entry(leader->breakpoints, addr);
if (sbp) {
if (addr != sbp->addr) {
- insert_breakpoint(event->proc, addr, sym, 1);
+ insert_breakpoint(event->proc, addr, sym);
}
} else {
new_sym=malloc(sizeof(*new_sym) + strlen(sym->name) + 1);
memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1);
new_sym->next = leader->list_of_symbols;
leader->list_of_symbols = new_sym;
- insert_breakpoint(event->proc, addr, new_sym, 1);
+ insert_breakpoint(event->proc, addr, new_sym);
}
#endif
for (j = event->proc->callstack_depth - 1; j > i; j--) {