Version: 0.3.17
* Added a bit more debugging
* Fixed display of return address in nested functions
* Added posibility to exit from a function different from the last
* called
one (this fixes "ltrace gnome-terminal", for example)
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c
index bc032d8..e9397dd 100644
--- a/sysdeps/linux-gnu/trace.c
+++ b/sysdeps/linux-gnu/trace.c
@@ -58,15 +58,7 @@
void continue_after_signal(pid_t pid, int signum)
{
/* We should always trace syscalls to be able to control fork(), clone(), execve()... */
-#if 0
- if (opt_S) {
- ptrace(PTRACE_SYSCALL, pid, 1, signum);
- } else {
- ptrace(PTRACE_CONT, pid, 1, signum);
- }
-#else
- ptrace(PTRACE_SYSCALL, pid, 1, signum);
-#endif
+ ptrace(PTRACE_SYSCALL, pid, 0, signum);
}
void continue_process(pid_t pid)