1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-30 21:21:45 +02:00
Commit graph

217 commits

Author SHA1 Message Date
mostang.com!davidm 95589da62c Regenerate.
(Logical change 1.152)
2004-01-14 06:21:52 +00:00
hp.com!davidm 32f19d0e09 (test_ptrace_LDADD): New macro.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm d799003645 Regenerate.
(Logical change 1.137)
2003-12-05 00:45:03 +00:00
hp.com!davidm dde43e2bee Initial revision 2003-12-05 00:45:03 +00:00
hp.com!davidm d154b86e84 (check_PROGRAMS_cdep): Mention test-mem.
(Logical change 1.137)
2003-12-05 00:45:03 +00:00
hp.com!davidm 5e111c69df (Logical change 1.137) 2003-12-05 00:45:03 +00:00
hp.com!davidm 9441e6cb89 (STACK_SIZE): Make it 128KB on x86. SIGSTKSZ is far too small.
(Logical change 1.131)
2003-11-27 07:17:47 +00:00
hp.com!davidm dcf293aa30 Cast printf() argument to avoid compiler-warning.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm 722933b6bc Cast printf() argument to avoid compiler warning.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm 06e572340e (a): Don't use inline-asm for Intel-compiler.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm 5e446b24d7 (ITERATIONS): New macro.
(maxlevel): New global variable.
(measure_unwind): Return init/step times via arg pointers.
(f1): Pass through init/step pointers.
(doit): New function.
(main): Use doit() instead of open code.

(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm 89d2adc59a Drop include of ia64intrin.h.
(Logical change 1.123)
2003-11-24 21:37:22 +00:00
hp.com!davidm 94f198b288 (handler): Adjust printf format to avoid compiler warning.
(Logical change 1.123)
2003-11-24 21:37:22 +00:00
hp.com!davidm 2c9be974dc Regenerate.
(Logical change 1.115)
2003-11-22 06:08:20 +00:00
mostang.com!davidm e83a184218 Regenerate.
(Logical change 1.114)
2003-11-20 01:10:03 +00:00
mostang.com!davidm 7a346fbf8c Measure with caching disabled, global caching, and thread-local
caching.

(Logical change 1.114)
2003-11-20 01:10:03 +00:00
mostang.com!davidm 716484f000 (Logical change 1.114) 2003-11-20 01:10:03 +00:00
mostang.com!davidm 634e645f67 Initial revision 2003-11-20 01:10:03 +00:00
mostang.com!davidm 00f05d607b (check_PROGRAMS_cdep): Mention Gtest-concurrent and Ltest-concurrent.
(Ltest_concurrent_LDADD): New macro.
(Gtest_concurrent_LDADD): Ditto.

(Logical change 1.114)
2003-11-20 01:10:03 +00:00
hp.com!davidm 587bba5c1f Print normal output only if "verbose" mode is requested.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm d7d831e9bb Fix x86 b
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm 29f2f89a8f (measure_unwind): Return 0.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm a237717fd7 (check_PROGRAMS_cdep): Move Gtest-init, Ltest-init, and
test-flush-cache to here from check_PROGRAMS_common.
	They cannot be compiled/used for REMOTE_ONLY configurations.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm 1c5c60b8ad Add some more debug statements and fix some typos.
(Logical change 1.103)
2003-09-25 05:08:18 +00:00
hp.com!davidm 048d4239ae Collect 20 samples per run.
(Logical change 1.102)
2003-09-24 21:56:42 +00:00
hp.com!davidm 1be40c4ff6 Regenerate.
(Logical change 1.100)
2003-09-24 20:05:17 +00:00
mostang.com!davidm dce915e1f6 Update.
(Logical change 1.99)
2003-09-24 05:03:10 +00:00
mostang.com!davidm 12876ef781 (Logical change 1.98) 2003-09-24 05:02:14 +00:00
mostang.com!davidm ee803e7acc Initial revision 2003-09-24 05:02:14 +00:00
mostang.com!davidm e1bdc44e0f (noinst_PROGRAMS_cdep): Add Gperf-simple and Lperf-simple.
(Logical change 1.98)
2003-09-24 05:02:14 +00:00
mostang.com!davidm 2eec126201 Add copyright message.
(Logical change 1.97)
2003-09-19 06:56:39 +00:00
mostang.com!davidm ef593732e7 (Logical change 1.96) 2003-09-19 06:56:12 +00:00
mostang.com!davidm 9c8195cb41 Initial revision 2003-09-19 06:56:12 +00:00
mostang.com!davidm 29358553a9 (check_PROGRAMS_common): Mention test-flush-cache.
(Logical change 1.96)
2003-09-19 06:56:12 +00:00
mostang.com!davidm dcd786be80 R
(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm 9339de49da (Logical change 1.95) 2003-09-18 06:09:22 +00:00
mostang.com!davidm b36317df37 Initial revision 2003-09-18 06:09:22 +00:00
mostang.com!davidm 6f01170a26 (check_PROGRAMS_common): Mention test-proc-info.
(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm 8b7c7e322a (do_backtrace): Also pring "gp".
(foo): Add some newlines for better readability.
(sighandler): Always declare as per Single UNIX Spec.
	On HP-UX, use __uc_get_ip() to read the interruption IP.
(main): Always use sigaction() to install a signal handler, so we can
	turn on the SA_SIGINFO flag.

(Logical change 1.87)
2003-04-24 20:45:07 +00:00
hp.com!davidm 6c3716a92a (flush_cache): Implement x86-version as a no-op.
(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm ade160f6a1 (STACK_SIZE): New macro. On x86, use 2*SIGSTKSZ, because the default-size
of 8KB is just too small to do anything reasonable.
(main): Use STACK_SIZE instead of SIGSTKSZ.

(Logical change 1.81)
2003-04-21 23:14:14 +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 4f17bce117 Regenerate.
(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm a4ab1098ea Add copyright header.
(Test_Class): New dummy class so we can define a constructor.
(backtrace): New function.

2003/03/27 16:03:18-08:00 mostang.com!davidm
Rename: tests/test-init.cxx -> tests/Gtest-init.cxx

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm b5e1ca5a53 Initial revision 2003-03-28 07:43:22 +00:00
mostang.com!davidm 294a1e55cc Add copyright header.
(Test_Class): New dummy class so we can define a constructor.
(backtrace): New function.

}(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 5adfead33c (test_sigsetjmp): Declare "i" as a volatile variable so it gets preserved across
sigsetjmp().

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 6bf5cdd335 (main): Set di.end_ip based on the region's insn_count (old value for di.end_ip was
too small when using ECC).

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 5907edf946 (main): Portability fix: cast return value from create_func() to proper function-type.
(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 9fe5e68f40 (check_PROGRAMS_common): Mention Gtest-init and Ltest-init.
(noinst_PROGRAMS_cdep): Remove test-init.
(Gtest_init_SOURCES): New macro.
(Ltest_init_SOURCES): Ditto.

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 757746aefb (a): When compiling with GCC on ia64, use "asm" statement to get the address of the
label.  gcc-3.x otherwise notices that the label isn't used for control-flow
	and feels free to move it around (usually to the beginning of the basic-block),
	with very bad consequences.

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm 453ec65cf0 (Logical change 1.70) 2003-03-28 07:43:22 +00:00
mostang.com!davidm 5b1f22a309 Regenerate.
(Logical change 1.69)
2003-03-27 04:34:23 +00:00
mostang.com!davidm 16192f7eac Separate bundle template directive from instruction with a semicolon. The Intel
assembler wants this.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm f168752fcf (Logical change 1.68) 2003-03-27 04:29:07 +00:00
mostang.com!davidm 58df2a4b8f Initial revision 2003-03-27 04:29:07 +00:00
mostang.com!davidm b0d98c76e4 If we have it, include <ia64intrin.h>.
(flush_cache): Moved to flush-cache.S.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm 43d0e03dc6 If we have it, include "config.h".
If we have it, include <ia64intrin.h>
(handler): Add support for ECC.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm 0231ae5a6f (ia64_test_dyn1_SOURCES): Mention flush-cache.S.
(Gtest_dyn1_SOURCES): Ditto.
(Ltest_dyn1_SOURCES): Ditto.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm 0e2f4866f2 (flush_cache): Move to flush-cache.S.
(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm feaf317bf2 (do_unwind_tests): Declare as global. Intel assembler insists on this.
Avoid GNU assembler local labels.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm 797322b3b4 (a): If not compiling with GCC, explain that there is no hope of exercising this
test.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm 00cfbc61fe Include "config.h" if we have it.
Declare "backtrace()" manually if we don't have execinfo.h.
Declare "sighandler_t" manually if the system doesn't do it for us.
On ia64, print sc->sc_ip only if we're on Linux.

(Logical change 1.63)
2003-03-19 19:25:18 +00:00
mostang.com!davidm 7a7d6113d4 Regenerate.
(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm 2853523b39 (unwind_and_resume): Rename UNW_REG_EH_ARG0 to UNW_REG_EH+0 and UNW_REG_EH_ARG1 to
UNW_REG_EH+1.

(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm 3532dd4a4c (main): Add some explicit casts to avoid "unsigned/signed comparison" warnings.
(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm 623c4cb79a (EXTRA_DIST): New macro. Mention run-ia64-test-dyn1.
(Lia64_test_stack_SOURCES): Mention ia64-test-stack.h.
(Gia64_test_stack_SOURCES): Ditto.
(Lia64_test_rbs_SOURCES): Mention ia64-test-rbs.h.
(Gia64_test_rbs_SOURCES): Ditto.

(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm 9d61294fde Include <assert.h>.
(main): Clean up region->op_count handling: op_count specifies the length of
	the array, not the number of valid op-entries.

(Logical change 1.57)
2003-02-27 17:33:20 +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
mostang.com!davidm 26f95915e4 Regenerate.
(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm e31015f67f (Logical change 1.56) 2003-02-27 09:58:57 +00:00
mostang.com!davidm 1de6745d5b Initial revision 2003-02-27 09:58:57 +00:00
mostang.com!davidm 4577631094 Don't be verbose by default.
(main): Send SIGUSR1 before dynamic testing starts, SIGUSR2 afterwards (makes it
	easy for test-ptrace to catch when verification should begin).
	Add test case for func_vframe().

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm 0d7396a027 (func_add3): Various small fixes.
(func_vframe): New function.

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm 405a7d8adf (check_SCRIPTS_cdep): New macro
(check_PROGRAMS_cdep): Ditto
(check_SCRIPTS_arch): Ditto.
(check_PROGRAMS_arch): Ditto.
(check_SCRIPTS): Ditto.
(check_PROGRAMS): Ditto.
(TESTS): Define in terms of check_PROGRAMS and check_SCRIPTS.

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
hp.com!davidm ea8a74ba29 Rewrite it.
(Logical change 1.55)
2003-02-26 08:33:57 +00:00
hp.com!davidm 818d0241f2 Initial revision 2003-02-26 08:33: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
hp.com!davidm 9f48ae3751 (TESTS_arch): Add ia64-test-dyn1.
(ia64_test_dyn1_SOURCES): New macro.

(Logical change 1.55)
2003-02-26 08:33:57 +00:00
hp.com!davidm 601494e771 (Logical change 1.55) 2003-02-26 08:33:57 +00:00
mostang.com!davidm 3434090e32 (Logical change 1.54) 2003-02-22 08:19:43 +00:00
mostang.com!davidm 5d9d17a5e8 Initial revision 2003-02-22 08:19:43 +00:00
hp.com!davidm 1a6bf76301 Rename: tests/test-dyn1.c -> tests/Gtest-dyn1.c
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm a1aed8c295 Rename: tests/test-dyn1.c -> tests/Gtest-dyn1.c
(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm ad94265cff Rename: tests/ia64-test-stack.c -> tests/Gia64-test-stack.c
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 9c83634f04 Rename: tests/ia64-test-stack.c -> tests/Gia64-test-stack.c
(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 7849826bf9 Regenerate.
(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 982f0e1684 New file.
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 690b203671 New file.
2003/02/21 13:59:32-08:00 hp.com!davidm
Rename: tests/ia64-test-rbs.c -> tests/Lia64-test-rbs.c

(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 5187d53d31 Delete UNW_LOCAL_ONLY.
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm f77ee147ac Delete UNW_LOCAL_ONLY.
2003/02/21 18:58:12-08:00 hp.com!davidm
Rename: tests/test-exc.c -> tests/Gtest-exc.c

(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 4fdeae046b D
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm 899ce01967 D
2003/02/21 18:59:31-08:00 hp.com!davidm
Rename: tests/test-resume-sig.c -> tests/Gtest-resume-sig.c

(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm a0f3b067b8 (Logical change 1.53) 2003-02-22 03:08:22 +00:00
hp.com!davidm 37d99c0c9f Initial revision 2003-02-22 03:08:22 +00:00
hp.com!davidm 1d36e97333 (TESTS_arch): Replace ia64-test-rbs with Gia64-test-rbs and
Lia64-test-rbs.
(TESTS_cdep): Replace test-exc, test-resume-sig, and test-dyn1 with
	G (generic) and L (local-only) variants.
(Lia64_test_rbs_SOURCES): Rename from ia64_test_rbs_SOURCES.
(Gia64_test_rbs_SOURCES): New macro.
(Lia64_test_stack_SOURCES): Rename from ia64_test_stack_SOURCES.
(Gia64_test_stack_SOURCES): New macro.

(Logical change 1.53)
2003-02-22 03:08:22 +00:00
mostang.com!davidm f0c37e1652 (unwind_and_resume): Correct argument printing.
(run_check): Limit unwind_count to range 1..(nfuncs+RECURSION_DEPTH).
	Fix off-by-one but that counter-acted a bug in ia64-test-rbs-asm.S.

(Logical change 1.52)
2003-02-21 07:36:26 +00:00
mostang.com!davidm 0d89914d4e (rbs_spill_N): Fix off-by-one bug in indexing into next_func[].
(Logical change 1.51)
2003-02-20 18:04:51 +00:00
mostang.com!davidm 6af90d0df4 Regenerate.
(Logical change 1.50)
2003-02-15 08:53:55 +00:00
mostang.com!davidm fb1997ff0a Add include of "ia64-test-rbs.h".
(NELEMS): New macro.
(RECURSION_DEPTH): Fix definition: loadup() allocates 93 local regs, not 95.
(spill_func_t): Make it return an "int".
(DCL): Adjust accordingly.
(verbose): New variable.
(nerrors): Make it an "int".
(unwind_count): Ditto.
(unwind_and_resume): Make it return an int.  Print info-output only if verbose is
	set.  After unwinding to the desired point, redirect IP to
	resumption_point_label and store return value in EH_ARG0 and original
	IP in EH_ARG1.
(run_check): New function.
(main): Remove open test code and call run_check() instead.

(Logical change 1.49)
2003-02-15 08:49:55 +00:00