diff options
author | Juan Cespedes <cespedes@debian.org> | 2002-03-31 20:53:52 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2002-03-31 20:53:52 +0200 |
commit | de5a7eb873c05a698e4267b554e25124dc92e7f4 (patch) | |
tree | 36dfe1d4412d2cfe973b0c8111294183d3788082 /breakpoints.c | |
parent | 5bfb061c4c7cfac6e1882a586cf36c849d95fcea (diff) | |
download | ltrace-de5a7eb873c05a698e4267b554e25124dc92e7f4.tar.gz |
Version 0.3.26
* Fixed `ltrace -L' in powerpc
Diffstat (limited to 'breakpoints.c')
-rw-r--r-- | breakpoints.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/breakpoints.c b/breakpoints.c index 2d18222..9b113a7 100644 --- a/breakpoints.c +++ b/breakpoints.c @@ -167,9 +167,11 @@ enable_all_breakpoints(struct process * proc) { * If the dynamic linker hasn't populated the PLT then * dont enable the breakpoints */ - a = ptrace(PTRACE_PEEKTEXT, proc->pid, proc->list_of_symbols->enter_addr, 0); - if (a == 0x0) - return; + if (opt_L) { + a = ptrace(PTRACE_PEEKTEXT, proc->pid, proc->list_of_symbols->enter_addr, 0); + if (a == 0x0) + return; + } #endif if (opt_d>0) { |