aboutsummaryrefslogtreecommitdiff
path: root/handle_event.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2011-07-08 22:58:12 +0200
committerPetr Machata <pmachata@redhat.com>2011-10-06 14:17:56 +0200
commitc7585b60235268e1f62bd91c5f040ef6df6e0ef3 (patch)
tree1b8ba4550f5f6302e4dde3688f55b482ea19eeba /handle_event.c
parent6901b7e429f7e92440f3501df864ad74b39f66c2 (diff)
downloadltrace-c7585b60235268e1f62bd91c5f040ef6df6e0ef3.tar.gz
Add argument that defines whether we should enable breakpoints
Diffstat (limited to 'handle_event.c')
-rw-r--r--handle_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle_event.c b/handle_event.c
index 3e08179..a9bdea1 100644
--- a/handle_event.c
+++ b/handle_event.c
@@ -418,7 +418,7 @@ handle_exec(Event * event) {
proc->filename = pid2name(proc->pid);
saved_pid = proc->pid;
proc->pid = 0;
- breakpoints_init(proc);
+ breakpoints_init(proc, 0);
proc->pid = saved_pid;
proc->callstack_depth = 0;
continue_process(proc->pid);
@@ -689,7 +689,7 @@ callstack_push_symfunc(Process *proc, struct library_symbol *sym) {
elem->return_addr = proc->return_addr;
if (elem->return_addr) {
- insert_breakpoint(proc, elem->return_addr, NULL);
+ insert_breakpoint(proc, elem->return_addr, NULL, 1);
}
/* handle functions like atexit() on mips which have no return */