1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-10 02:58:11 +01:00
Commit graph

2972 commits

Author SHA1 Message Date
hp.com!davidm
8aff3354e2 Mention x86/set_caching_policy-x86.c.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
b3c9ffcf39 Initial revision 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
197801e353 AC_CHECK_HEADERS: Mention signal.h.
(CPPFLAGS): Move before AC_CHECK_TYPES(), so those later checks
	run with -D_GNU_SOURCE.
(AC_CHECK_TYPES): Fix the check for sighandler_t.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
87e2dfb9af (unw_regname): Fix signed/unsigned comparison.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
522e2ccbe0 (sos_alloc): Do type-punning through a union to be ANSI-9x compliant
and avoid a warning from gcc.

(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
71650257d7 (lookup_symbol): Cast arguments to debug printf() so they compile
without warning on both 32- and 64-bit platforms.

(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
2f3b37da51 (_UPT_access_reg): Cast arguments to debug printf so they compile
without warning on both 32- and 64-bit platforms.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
a99bac423b (_UPT_access_mem): Cast arguments to debug printf so that it
compiles without worning both on 64-bit and 32-bit platforms.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
e4be4f9dc5 (Logical change 1.104) 2003-09-25 05:29:14 +00:00
hp.com!davidm
368c9eeadc Fix sigsetjmp() for Linux kernels with the stream-lined syscall
entry/exit path.  Without this fix, unw_resume() failed to restore
most scratch register and caused test-setjmp to fail.

BKrev: 3f7278420gm7LAAf21d-L_Iuu7Zu_g
2003-09-25 05:08:18 +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
350ae98340 (local_resume): Clear IA64_SC_FLAG_IN_SYSCALL before resuming via
sigreturn().  This is needed to ensure that all scratch-regs
	get restored.  Also add some more debug statements.

(Logical change 1.103)
2003-09-25 05:08:18 +00:00
hp.com!davidm
d09c9dcec9 Fix a performance regression in ia64_find_save_locs() which was
caused by the recent bug fix for the problem where a get_proc_info()
failure would cause a script to be created but not fully initialized.

BKrev: 3f72131a0z5c6mgTJsyoxCkNwHfgAA
2003-09-24 21:56:42 +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
d0fddf5de8 (ia64_find_save_locs): Only call ia64_fetch_proc_info() when we really
have to (i.e., if we don't have cached info).  Otherwise,
	the unnecessary calls cause a performance regression.

(Logical change 1.102)
2003-09-24 21:56:42 +00:00
hp.com!davidm
01b02dde89 Regenerate.
(Logical change 1.101)
2003-09-24 21:51:53 +00:00
hp.com!davidm
285a4f5a90 Document the __tls_get_addr unresolved reference problem and its
workaround (--disable-__thread).

BKrev: 3f7211f9WH9Qcnnwvbg7XZrxUqTbSg
2003-09-24 21:51:53 +00:00
hp.com!davidm
3f9c0bcda6 Document the __tls_get_addr problem and its workaround
(--disable-__thread).

(Logical change 1.101)
2003-09-24 21:51:53 +00:00
hp.com!davidm
d75c356fc8 (LIBUNWIND___THREAD): Check $enable___thread instead of $use__thread.
(Logical change 1.101)
2003-09-24 21:51:53 +00:00
hp.com!davidm
1be40c4ff6 Regenerate.
(Logical change 1.100)
2003-09-24 20:05:17 +00:00
hp.com!davidm
8c1998a4e4 Regenerate tests/Makefile.in.
BKrev: 3f71f8fdprmJOkq4wWI63wf71SysnQ
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
e15cb5ce54 Regenerate L files in tests/.
BKrev: 3f71258e3bOkW6VVLUiTwGUCKVlE8A
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
dc8e7b65af Add {G,L}perf-simple.c --- a simple performance tester.
BKrev: 3f712556eIGh9pZTC_I1mItZQYqbaw
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
9bd1b348b0 Add copyright message to test-proc-info.c.
BKrev: 3f6aa8a7M8xx5tjWGNj4nOAVuSYuOQ
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
e323f3fae2 Fix script cache bug found by Brian Sumner: unw_flush_cache() would
(eventually) clear the IP values of all scripts, but failed to
update the hash/collision-chain info, which could result in
loops in the collision-chains.  Fixed by flushing the cache under
the global lock and since things are locked now, we can update the
collision-chain etc. without fear of races.  Added test-flush-cache
to test for this error-condition.



BKrev: 3f6aa88cQRr-NcDXg_8mM3dN2esAQQ
2003-09-19 06:56:12 +00:00
mostang.com!davidm
b3c1bf3f75 (flush_script_cache): Drop addr_space_t argument. Initialize
hash-table, collision-chains, and hash-table in addition
	to clearing the script's IP value.  The latter wasn't nearly
	sufficient because it could cause loops on the collision
	chain...
(get_script_cache): Also lock the cache if global caching is in
	effect.  Take additional "saved_sigmaskp" argument.
	After flushing the cache, update the cache generation
	here.
(put_script_cache): New function.
(ia64_get_cached_proc_info): Adjust for get_script_cache() and
	put_script_cache() changes.
(ia64_find_save_locs): Ditto.
(ia64_script_cache_init): Call flush_script_cache() instead of
	opening-coding the equivalent code.

(Logical change 1.96)
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
c15421a046 Fix bug found by Brian Sumner: if get_proc_info() returned a
a failure status, we ended up bugging out at a time when the
script was already created, but not fully initialized.  To prevent
this, the proc-info is now obtained early on, i.e., before creating
the script, so that if the proc-info cannot be obtained, we can bug
out without bad side-effects.  Also, I added a test-program
(test-proc-info) which verifies that proc-info lookup failures are
not cached (which we don't want, because it could turn temporary
failures into permanent ones and would break UNW_ESTOPUNWIND).


BKrev: 3f694c12mGQ-jHr9HOtB4YXFHeLdMw
2003-09-18 06:09:22 +00:00
mostang.com!davidm
510a7c82f7 (unw_is_signal_frame): Call ia64_fetch_proc_info() before creating
the state-record.

(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm
cbf1d7d56b (parse_dynamic): Call ia64_fetch_proc_info() before creating the
state-record.
(ia64_fetch_proc_info): Rename from get_proc_info().
(create_state_record_for): Assert that c->pi_valid is TRUE at the
	time of entry.  Remove call to get_proc_info().

(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm
46f5783f5d (ia64_find_save_locs): Call ia64_fetch_proc_info() early on and
bug out if it fails (before creating a new script).

(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm
d6946f580b (ia64_fetch_proc_info): New procedure.
(Logical change 1.95)
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
0cf47a160f Add missing initialization of global script cache when creating a
new address-space.

BKrev: 3f694a25umn-Ju2rV_HQcTzxdHEF7g
2003-09-18 06:01:09 +00:00
mostang.com!davidm
117b21a1cf (unw_create_addr_space): Initialize global script-cache here (while
there are no other threads using the cache).

(Logical change 1.94)
2003-09-18 06:01:09 +00:00
mostang.com!davidm
0fc6931c35 Fix two bugs found by Brian Sumner: nasty off-by-1 error in
rotate_gr() and bad check for -UNW_ESTOPUNWIND in ia64_find_save_locs().

BKrev: 3f43b7b6bW6Pi_LqDUH7ee9JLEZVNQ
2003-08-20 18:02:30 +00:00
mostang.com!davidm
4d40a1cfc8 (rotate_gr): Fix off-by-1 bug and simplify the function.
(Logical change 1.93)
2003-08-20 18:02:30 +00:00