1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-16 13:18:12 +01:00
Commit graph

20 commits

Author SHA1 Message Date
Tommi Rantala
47a99b6f00 Eliminate unused parameters in tests 2012-08-21 22:30:41 +03:00
Arun Sharma
538f63d796 Fix test-ptrace in automated mode
Tested via:
./test-ptrace
./test-ptrace -v /bin/ls /usr
2012-08-11 21:21:54 -07:00
Arun Sharma
707b1dba99 Fix a SIGSEGV in test-ptrace.c
./test-ptrace -v resulted in a SIGSEGV.
2012-08-04 18:06:07 -07:00
Zachary T Welch
13cd3b0c26 Fix test-ptrace argument parsing.
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>
2011-03-07 21:24:51 -08:00
Konstantin Belousov
4b3ca293bf Fix PT_SYSCALL ignoring of ip 2010-03-08 17:01:31 +02:00
Konstantin Belousov
ad932154a6 Port test-ptrace 2010-03-08 00:50:50 +02:00
David Mosberger-Tang
5f3d29562d * tests/test-async-sig.c: Move "const" definition to separate area to keep
things a bit neater looking.
* tests/test-ptrace.c: Likewise.

Signed-off-by: David Mosberger-Tang <dmosberger@gmail.com>
2007-05-16 13:19:46 -06:00
Jan Kratochvil
a72abd4e46 2007-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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'.
2007-05-16 13:16:31 -06:00
hp.com!davidm
95c9a4a21e Fix merge conflict.
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)
2005-05-03 09:13:17 +00:00
hp.com!davidm
b0048ee762 (do_backtrace): Keep track of initial IP so we can issue better error messages.
(main): Update comment for -t.

(Logical change 1.276)
2004-10-15 13:48:38 +00:00
mostang.com!davidm
ba424722db (main): If HAVE_TTRACE is defined, fail unconditionally.
(Logical change 1.222)
2004-05-04 22:19:18 +00:00
mostang.com!davidm
a4bd80c748 (print_names): New global.
(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)
2004-04-21 07:24:35 +00:00
mostang.com!davidm
40a1558927 Include <libunwind-ptrace.h> instead of <libunwind.h>.
(Logical change 1.156)
2004-01-21 01:05:07 +00:00
hp.com!davidm
e6ddf4c3e0 (main): Fix command-line parsing to allow for more than one argument.
(Logical change 1.71)
2003-03-29 07:32:50 +00:00
mostang.com!davidm
64b4ac37da Use SIGUSR1/SIGUSR2 to start/stop backtrace() verification for trace_mode == TRIGGER.
(Logical change 1.56)
2003-02-27 09:58:57 +00:00
hp.com!davidm
b97fa14ca5 Include <asm/ptrace_offsets.h> if host is IA-64.
(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)
2003-02-26 08:33:57 +00:00
mostang.com!davidm
d20530f7ab (do_backtrace): Adjust for new "offset" argument in unw_get_proc_name().
(Logical change 1.45)
2003-02-08 10:10:59 +00:00
mostang.com!davidm
de4410dce0 (ui): Make it global instead of local to do_backtrace().
(do_backtrace): Move creation/destruction of the UPT-info structure from here...
(main): ...to here.

(Logical change 1.44)
2003-01-28 07:32:15 +00:00
hp.com!davidm
e9e4e5fb29 (Logical change 1.43) 2003-01-28 03:40:06 +00:00
hp.com!davidm
b064eb4574 Initial revision 2003-01-28 03:40:06 +00:00