diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-28 14:59:05 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:02:08 +0200 |
commit | ba1664b062414481d0f37d06bb01a19874c8d481 (patch) | |
tree | ee8c58cf94bad219f290c3eec6b4e9f3c4c4902c /sysdeps/linux-gnu/trace.c | |
parent | c70b19501f800cb911ac906c7fb153c4a37f5f57 (diff) | |
download | ltrace-ba1664b062414481d0f37d06bb01a19874c8d481.tar.gz |
Fix compilation
Diffstat (limited to 'sysdeps/linux-gnu/trace.c')
-rw-r--r-- | sysdeps/linux-gnu/trace.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c index 5924df1..3fc4df0 100644 --- a/sysdeps/linux-gnu/trace.c +++ b/sysdeps/linux-gnu/trace.c @@ -37,13 +37,15 @@ # include <selinux/selinux.h> #endif -#include "ptrace.h" -#include "breakpoint.h" -#include "proc.h" #include "linux-gnu/trace.h" #include "backend.h" -#include "type.h" +#include "breakpoint.h" +#include "debug.h" #include "events.h" +#include "options.h" +#include "proc.h" +#include "ptrace.h" +#include "type.h" /* If the system headers did not provide the constants, hard-code the normal values. */ @@ -673,8 +675,8 @@ singlestep_error(struct process_stopping_handler *self) struct Process *teb = self->task_enabling_breakpoint; struct breakpoint *sbp = self->breakpoint_being_enabled; fprintf(stderr, "%d couldn't continue when handling %s (%p) at %p\n", - teb->pid, sbp->libsym != NULL ? sbp->libsym->name : NULL, - sbp->addr, get_instruction_pointer(teb)); + teb->pid, breakpoint_name(sbp), sbp->addr, + get_instruction_pointer(teb)); delete_breakpoint(teb->leader, sbp->addr); } |