diff options
author | Petr Machata <pmachata@redhat.com> | 2013-01-30 23:11:35 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-03-12 00:08:52 +0100 |
commit | 4dcc3893d488d19c7606acfa80752babbbe04645 (patch) | |
tree | 0a05dfd0ddbcf8fbde8c396e7dfd42d9325018f5 /handle_event.c | |
parent | f9d93c50bd246ea7fd42e0c8ad24aa01467e76ac (diff) | |
download | ltrace-4dcc3893d488d19c7606acfa80752babbbe04645.tar.gz |
Drop return_addr from struct process
- The only interesting use seems to be in output.c, but there we assume
we are working with top-of-callstack anyway, and store fetch context
there, so we can simply fetch the return address this way as well.
Diffstat (limited to 'handle_event.c')
-rw-r--r-- | handle_event.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/handle_event.c b/handle_event.c index 3101847..8292e5a 100644 --- a/handle_event.c +++ b/handle_event.c @@ -622,7 +622,6 @@ handle_breakpoint(Event *event) calc_time_spent(event->proc); } } - event->proc->return_addr = brk_addr; struct library_symbol *libsym = event->proc->callstack[i].c_un.libfunc; @@ -678,8 +677,6 @@ handle_breakpoint(Event *event) if (event->proc->state != STATE_IGNORED && sbp->libsym != NULL) { event->proc->stack_pointer = get_stack_pointer(event->proc); - event->proc->return_addr = - get_return_addr(event->proc, event->proc->stack_pointer); callstack_push_symfunc(event->proc, sbp->libsym); output_left(LT_TOF_FUNCTION, event->proc, sbp->libsym); } |