summaryrefslogtreecommitdiff
path: root/tests/test-ptrace.c
Commit message (Collapse)AuthorAgeFilesLines
* Work around lack of execvpe on FreeBSDAlex Arslan2021-09-011-0/+4
| | | | | | | Commit 06468efcb52fb1ecbffed99818c1f567c60b1b90 switched `test-ptrace.c` to use `execvpe` instead of `execve`. However, the former doesn't exist on FreeBSD. This now adds a guard such that `execve` is used on FreeBSD and `execvpe` is retained on other systems.
* test-ptrace: Fix for NixOSZhaofeng Li2021-07-111-2/+2
| | | | In NixOS, coreutils aren't in their FHS-mandated locations.
* tests: Walk default test arguments to ensure child process has visibilityDave Watson2017-01-131-0/+5
|
* Mark run-ptrace-mapper and run-ptrace-misc as XFAIL on MIPSSimon Atanasyan2014-10-241-2/+10
| | | | | | | | | | | | | Though PTRACE_SINGLESTEP is defined on MIPS Linux, the kernel does not support that kind of request. The ptrace call failed and sets errno to EIO and paused process is not resumed. In case of run-ptrace-mapper and run-ptrace-misc this leads to hanged execution because next call to wait4 never returns. This change adds run-ptrace-mapper and run-ptrace-misc to the list of 'expected failed' tests on MIPS targets. Signed-off-by: Simon Atanasyan <simon@atanasyan.com>
* Prefer NULL over zeroTommi Rantala2012-09-281-1/+1
|
* Cleanup dynamically allocated memory before exit in testsTommi Rantala2012-09-281-0/+1
| | | | | | | | | Cleanup dynamically allocated memory before exit in tests in a few places where missing. While such cleanups right before exit do not usually make much sense (as the operating system would cleanup anyway, so manual cleanups only burn CPU cycles), we will want to catch any potential problems in libunwind related to the cleanups. This also stops valgrind complaining about unreleased memory.
* Do not allow the reference to the local var to outlive the local var scope.Konstantin Belousov2012-09-211-1/+1
|
* Eliminate unused parameters in testsTommi Rantala2012-08-211-5/+5
|
* Fix test-ptrace in automated modeArun Sharma2012-08-111-1/+1
| | | | | | Tested via: ./test-ptrace ./test-ptrace -v /bin/ls /usr
* Fix a SIGSEGV in test-ptrace.cArun Sharma2012-08-041-0/+7
| | | | ./test-ptrace -v resulted in a SIGSEGV.
* Fix test-ptrace argument parsing.Zachary T Welch2011-03-071-0/+2
| | | | | | | Avoids an endless loop when passing unknown options. Signed-off-by: Zachary T Welch <zwelch@codesourcery.com> Signed-off-by: Ken Werner <ken.werner@linaro.org>
* Fix PT_SYSCALL ignoring of ipKonstantin Belousov2010-03-081-1/+1
|
* Port test-ptraceKonstantin Belousov2010-03-081-1/+34
|
* * tests/test-async-sig.c: Move "const" definition to separate area to keepDavid Mosberger-Tang2007-05-161-1/+2
| | | | | | | things a bit neater looking. * tests/test-ptrace.c: Likewise. Signed-off-by: David Mosberger-Tang <dmosberger@gmail.com>
* 2007-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>Jan Kratochvil2007-05-161-4/+35
| | | | | | | | | | | | | | | | | | | | | * tests/test-ptrace.c (target_pid_kill): New function. (target_pid, main): TARGET_PID made static, for target_pid_kill (). (main): Register target_pid_kill () for atexit(3). 2007-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> * tests/Gtest-dyn1.c, tests/test-async-sig.c, tests/test-ptrace.c: Fixed lockups on broken libunwind (as ppc64 is). 2007-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> * tests/test-async-sig.c (do_backtrace): Limit maximum backtrace depth to 100 iterations; it workarounds FC6 DWARF-broken glibc. 2006-12-10 Jan Kratochvil <jan.kratochvil@redhat.com> * tests/test-ptrace.c (main): Check for too many unexpected child signals, such as the common `SIGSEGV'.
* Fix merge conflict.hp.com!davidm2005-05-031-6/+17
| | | | | | | | | | | | | | | | 2004/12/02 23:51:00-08:00 hp.com!davidm (do_backtrace): Also print the symbol offset. Increase nesting-level tolerance to 64 so we can test programs with deeply nested call-chains without triggering spurious warnings. 2004/11/30 22:44:47-08:00 mostang.com!davidm (do_backtrace): Print IP if unw_get_proc_info() fails. 2004/11/23 18:01:09-08:00 mostang.com!davidm (do_backtrace): Fix "start_ip might be used uninitialized" warning. (Logical change 1.290)
* (do_backtrace): Keep track of initial IP so we can issue better error messages.hp.com!davidm2004-10-151-5/+9
| | | | | | (main): Update comment for -t. (Logical change 1.276)
* (main): If HAVE_TTRACE is defined, fail unconditionally.mostang.com!davidm2004-05-041-0/+15
| | | | (Logical change 1.222)
* (print_names): New global.mostang.com!davidm2004-04-211-5/+17
| | | | | | | | | | (do_backtrace): Call unw_get_proc_name() only if print_names is TRUE. (main): Support command-line option -c to turn on caching of unwind-info and -n to turn off the printing (and lookup) of symbol names. Stop execution if child dies with a signal. (Logical change 1.209)
* Include <libunwind-ptrace.h> instead of <libunwind.h>.mostang.com!davidm2004-01-211-1/+1
| | | | (Logical change 1.156)
* (main): Fix command-line parsing to allow for more than one argument.hp.com!davidm2003-03-291-11/+12
| | | | (Logical change 1.71)
* Use SIGUSR1/SIGUSR2 to start/stop backtrace() verification for trace_mode == ↵mostang.com!davidm2003-02-271-46/+59
| | | | | | TRIGGER. (Logical change 1.56)
* Include <asm/ptrace_offsets.h> if host is IA-64.hp.com!davidm2003-02-261-12/+59
| | | | | | | | (trace_mode): New variable. (main): Support options -i (instruction-by-instruction backtracing), -s (syscall-level backtracing), -t (triggered instruction-level backtracing). (Logical change 1.55)
* (do_backtrace): Adjust for new "offset" argument in unw_get_proc_name().mostang.com!davidm2003-02-081-1/+1
| | | | (Logical change 1.45)
* (ui): Make it global instead of local to do_backtrace().mostang.com!davidm2003-01-281-4/+5
| | | | | | | (do_backtrace): Move creation/destruction of the UPT-info structure from here... (main): ...to here. (Logical change 1.44)
* (Logical change 1.43)hp.com!davidm2003-01-281-0/+178
|
* Initial revisionhp.com!davidm2003-01-281-0/+0