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

2800 commits

Author SHA1 Message Date
homeip.net!davidm
49af3506c7 x86_64: Fix up things some more such that "make check" is starting
to work.  Also, bt works now correctly, except that it still
	crashes when attempting to unwind across a signal-handler on
	an alternate signal-stack.

BKrev: 4125df2334Is8GIamgpMJ-630S9EBw
2004-08-20 11:23:15 +00:00
homeip.net!davidm
642607dbaa Cast register indices of type unw_word_t to (unsigned int) before
printing them.  Avoids compiler-warning for 64-bit targets.

(apply_reg_state): Handle the special case where the stack-pointer
	plays the role of the CFA and the stack-pointer hasn't
	been saved.  This is based on a patch by Max Asbock.

(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
6058013abe (unw_step): If dwarf_step() fails, fall back on using the frame-chain.
In theory, this may not be needed.  In practice, I find that
	Red Hat Enterprise Linux AS release 3, the _start() routine has
	no unwind-info, but we need to be able to unwind into this
	routine to find the end-of-frame-chain marker (RBP == 0).

(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
be2bed2712 (tdep_access_reg): If c->dwarf.cfa_is_sp is set, treat UNW_X86_64_RSP
as a read-only alias of CFA.

(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
9034bd158a (struct dwarf_cursor): Add new member "cfa_is_sp" to mark the case
when the (unsaved) stack-pointer is the CFA.

(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
9ac7a860d1 (parse_cie): Clarify the comment about the default FDE-encoding a bit.
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
18acb92530 (flush_cache): Provide dummy-implementation for x86-64.
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
99784e02d3 (_UPTi_find_unwind_table): Provide dummy x86-64 implementation so
"make check" can be run.

(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
d8c89b8a01 (_UPT_reg_offset): Provide x86-64 register offsts (untested).
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
982b64232d Regenerate.
(Logical change 1.252)
2004-08-19 14:03:54 +00:00
homeip.net!davidm
9aafad075c Regenerate some files missed in the x86-64 check-in.
Move test-init-remote to where it belongs, so it does not get build for
REMOTE_ONLY.

BKrev: 4124b34apITy6n8Hvroi47or9yP9sw
2004-08-19 14:03:54 +00:00
homeip.net!davidm
3eb739d290 (check_PROGRAMS_cdep): Move test-init-remote from check_PROGRAMS_common to here
so it doesn't get built in the REMOTE_ONLY-case.

(Logical change 1.252)
2004-08-19 14:03:54 +00:00
homeip.net!davidm
4980b53aaa x86_64: Fix cross-compilation issue in src/x86_64/Gstep.c.
BKrev: 4124b26ei4ORPfaXUkGRYQfAPW_yVQ
2004-08-19 14:00:14 +00:00
homeip.net!davidm
51ef1210e8 Include ucontext_i.h.
(unw_step): Fixup signal-frame-skipping code so it can be cross-compiled.

(Logical change 1.251)
2004-08-19 14:00:14 +00:00
homeip.net!davidm
43425a9beb (Logical change 1.251) 2004-08-19 14:00:14 +00:00
homeip.net!davidm
c0603a8ebc Initial revision 2004-08-19 14:00:14 +00:00
homeip.net!davidm
d16f71cd02 test-init-remote.c: Minor cleanup.
BKrev: 4124adb8ATfgjWXy37rwz5K3skLBdQ
2004-08-19 13:40:08 +00:00
homeip.net!davidm
95dea64712 (do_backtrace): Delete unused variable "pi".
(Logical change 1.250)
2004-08-19 13:40:08 +00:00
ibm.com!masbock
e407f9a720 Regenerate.
(Logical change 1.249)
2004-08-19 13:39:10 +00:00
ibm.com!masbock
aa9a917cb4 Add x86_64 support.
(Logical change 1.249)
2004-08-19 13:39:10 +00:00
ibm.com!masbock
e9cb33eaa2 Add initial x86-64 support.
BKrev: 4124ad7eUbGr3ZlILTvvJDtKKOCxBA
2004-08-19 13:39:10 +00:00
ibm.com!masbock
a766efd844 (Logical change 1.249) 2004-08-19 13:39:10 +00:00
ibm.com!masbock
58e37267be Initial revision 2004-08-19 13:39:10 +00:00
homeip.net!davidm
a543e2d83a dwarf: First round of DWARF2 fixes. This is borrows heavily from Max
Asbock patches.

BKrev: 41249c63OG9uVLuWVHOjTb8A7aczag
2004-08-19 12:26:11 +00:00
homeip.net!davidm
077322d414 Drop DWARF-parsing debug prints from level 16 to 15.
(parse_cie): Pick correct default for FDE-encoding, not just DW_EH_PE_omit.

(Logical change 1.248)
2004-08-19 12:26:11 +00:00
homeip.net!davidm
aae368ace2 Drop DWARF-parsing debug prints from level 16 to 15.
(Logical change 1.248)
2004-08-19 12:26:11 +00:00
homeip.net!davidm
e9045e3cca Add include of dwarf_i.h now that we need dwarf_reads32().
Drop DWARF-parsing debug prints from level 16 to 15.
(struct table_entry): Change member types from unw_word_t to int32_t.  The members
	need to be of a signed type and forcing them to 32 bits makes the type
	work for both 32-bit and 64-bit executables (up to 4GB of text-size).
(callback): Only allow search tables which have 32-bit members.
	Fix initialization of di->u.rti.table_len to express table-length as a count
	of unw_word_t, as it's defined to be (we get lucky here: even with 32-bit
	members, each table-entry contains two members so we're guaranteed that the
	table has a size that is an integer-multiple of unw_word_t even on 64-bit
	platforms).
(lookup): Change type of "rel_ip" from unw_word_t to int32_t.  Simplify the
	code a bit.
(remote_read): Delete.
(remote_lookup): Use dwarf_reads32() instead of remote_read() to read out table
	members.  Simplify code a bit.

(Logical change 1.248)
2004-08-19 12:26:11 +00:00
homeip.net!davidm
5742642c24 (unw_step): Drop extra 'x' from Debug statement.
(Logical change 1.248)
2004-08-19 12:26:11 +00:00
homeip.net!davidm
51298c5d23 Regenerate.
(Logical change 1.247)
2004-08-19 12:10:58 +00:00
homeip.net!davidm
7bf54942fe Regenerate configure.
BKrev: 412498d2XjX0uRS_LB2TTuQXrN35Mg
2004-08-19 12:10:58 +00:00
homeip.net!davidm
1ba865a631 Regenerate.
(Logical change 1.246)
2004-08-19 10:45:23 +00:00
homeip.net!davidm
14138a6e5e Make libunwind compliant with updated & extended ia64 unwind
specification defined by HJ Lu for GCC.  This consists of changing
the library name to libunwind.so.7 and adding some aliases for
the C++-ABI-required _Unwind_*() routines.

BKrev: 412484c3fsUC5QNg0mbOGGNewhyOXg
2004-08-19 10:45:23 +00:00
homeip.net!davidm
66100609bb Add alias required by ia64 unwind specification.
(Logical change 1.246)
2004-08-19 10:45:23 +00:00
homeip.net!davidm
ccdd644cf2 (SOVERSION): Change from 3:0:2 to 0:0:0 for ia64 unwind-specification compliance.
(Logical change 1.246)
2004-08-19 10:45:23 +00:00
homeip.net!davidm
78e2f93811 (ALIAS): New macro.
(Logical change 1.246)
2004-08-19 10:45:23 +00:00
homeip.net!davidm
14042ee648 (AC_INIT): Change version from 0.97 to 0.98-alpha.
(Logical change 1.246)
2004-08-19 10:45:23 +00:00
bea.com!thallgre
779632ee82 Regenerate.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
0f818455ce Initial revision 2004-08-18 15:16:46 +00:00
bea.com!thallgre
f4016fda43 Add unw_strerror() convenience function.
Signed-off-by: Thomas Hallgren <thallgre@bea.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>

BKrev: 412372deLr_hO_ZcnONAQ8FlYLYsZg
2004-08-18 15:16:46 +00:00
bea.com!thallgre
4b21fc9b3d (unw_strerror): Declare.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
99681de066 (man3_MANS): Mention unw_strerror.man.
(EXTRA_DIST): Mention unw_strerror.tex.

(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
cb503ba4e5 (libunwind_la_SOURCES_common): Mention mi/strerror.c.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
511d542828 (check_local_unw_abi): Check for _U${plat}_strerror().
(check_generic_unw_abi): Likewise.

(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
42a90f14d5 (check_PROGRAMS_common): Mention test-strerror.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
48cc8c5712 (Logical change 1.245) 2004-08-18 15:16:46 +00:00
hp.com!davidm
7556c9ae61 ia64: Fix another minor breakage from yesterday's big rename.
BKrev: 4123360e54IQsnA6vJTNpAs_5OMz4w
2004-08-18 10:57:18 +00:00
hp.com!davidm
54b9ba95f9 Drop include of <libunwind.h> and #ifdef checks.
(Logical change 1.244)
2004-08-18 10:57:18 +00:00
hp.com!davidm
90951df194 ia64: Fix bug in unw_init_remote(). Reported by Troy Heber.
BKrev: 41233464cDrSQA3_-dVt4AClHBl0cA
2004-08-18 10:50:12 +00:00
hp.com!davidm
0588a0bcc3 Regenerate.
(Logical change 1.243)
2004-08-18 10:50:12 +00:00
hp.com!davidm
b71d3fd5d2 Initial revision 2004-08-18 10:50:12 +00:00