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

2904 commits

Author SHA1 Message Date
hp.com!davidm
555bae8aa3 (tdep_access_reg): When writing RAX/RDX, update eh_args[] and
eh_valid_mask instead.  When reading and the corresponding
	eh_valid_mask bit is set, read from eh_args[] instead.

2004/11/17 02:43:39-08:00 mostang.com!davidm
(tdep_access_reg): Treat UNW_X86_64_RSP exactly like UNW_X86_64_CFA.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
5b0507c432 (tdep_access_reg): Handle UNW_HPPA_IP, UNW_HPPA_CFA, UNW_HPPA_SP,
and UNW_HPPA_EH{0,1,2,3} correctly.
(tdep_access_fpreg): Implement.

2004/12/02 00:40:45-08:00 mostang.com!davidm
(tdep_access_reg): Provide a minimally working implementation.
(tdep_access_fpreg): New (unimplemented) function.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
b38691980f (sos_alloc): Fix soslock vs. sos_lock typo.
2005/02/23 14:40:44-08:00 mostang.com!davidm
Adjust for sigset_t to intrmask_t renaming.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
7e0192f53a (setcontext): Declare.
2004/12/02 00:40:45-08:00 mostang.com!davidm
Delete accessor macros which have been replaced by their DWARF
equivalent.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
16af7ae96e (libunwind_setjmp_la_SOURCES_x86_64): Mention longjmp.S.
(libunwind_la_SOURCES_x86_64_common): Mention x86_64/setcontext.S.

2004/12/15 15:36:36-08:00 hp.com!davidm
(libunwind_ptrace_a_SOURCES): Mention _UPT_elf.c.
(libunwind_la_SOURCES_ia64_common): Move ELF files to here
	from libunwind_la_SOURCES_ia64.
(libunwind_la_SOURCES_hppa_common): Likewise.
(libunwind_la_SOURCES_x86_common): Likewise.
(libunwind_la_SOURCES_x86_64_common): Likewise.

2004/12/06 10:40:49-08:00 mostang.com!davidm
(libunwind_setjmp_la_SOURCES_common): Move files into
	setjmp subdirectory.
(libunwind_setjmp_la_SOURCES_hppa): Don't bother mentioning
	common files again.
(libunwind_setjmp_la_SOURCES_x86): Likewise.
(libunwind_setjmp_la_SOURCES_x86_64): Likewise.

2004/12/04 17:00:04-08:00 hp.com!davidm
(libunwind_la_SOURCES_hppa): Mention hppa/setcontext.S.

2004/12/02 00:40:45-08:00 mostang.com!davidm
(COMMON_SO_LDFLAGS): Drop -XCClinker -nostdlib and
	$(LDFLAGS_STATIC_LIBCXA) and move them...
(libunwind_la_LDFLAGS): ...to here instead.  We only want the
	local unwind-library built that way.
(libunwind_la_SOURCES_hppa_common): New macro.
(libunwind_la_SOURCES_hppa): Update.
(libunwind_hppa_la_SOURCES_hppa): New macro.

2004/11/23 16:59:56-08:00 mostang.com!davidm
(dwarf_SOURCES_common): Remove dwarf/dwarf-eh.h.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
f6b74c9cbe (ia64_get_cached_proc_info): Drop duplicate "ia64_" prefix.
(ia64_cache_proc_info): New function/macro.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
23405d02ec (get_script_cache): Fix typo in Debug() statement (missing argument).
(put_script_cache): Fix typo in argument name.

2005/04/07 12:19:38-07:00 hp.com!davidm
(ia64_get_cache_proc_info): Move it to near the end of the file.
(script_init): Also call ia64_fetch_proc_info() if the script was
	found in the cache but it's empty (count == 0 and NULL
	unwind_info pointer).  Also invoke build_script() if
	script has no instructions yet (count==0).  Add assertion
	to ensure that build_script() never returns an empty
	script.
(ia64_cache_proc_info): New function to cache the proc_info only.

2005/02/23 14:40:44-08:00 mostang.com!davidm
Adjust for sigset_t to intrmask_t renaming.

2005/02/23 13:10:05-08:00 mostang.com!davidm
Adjust for "ia64_rse" to "rse" prefix change.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
847e0a4b18 (dwarf_misaligned_value_t): Move "attribute" declaration to the type
to make newer versions of GCC happy.

2005/02/23 12:55:45-08:00 mostang.com!davidm
(dwarf_read_encoded_pointer_inlined): Adjust for ALWAYS_INLINE
	change.

2004/12/02 00:40:45-08:00 mostang.com!davidm
Make it possible for dwarf-config.h to define its own version of
dwarf_to_unw_regnum().

2004/11/23 16:59:56-08:00 mostang.com!davidm
(dwarf_to_unw_regnum): Make it a macro so we don't have a
dependency just because of including the file when --enable-debug
is on (and inlining is off).
(dwarf_read_encoded_pointer_inlined): Move from Gpe.c to here
	and rename from dwarf_read_encoded_pointer().

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
c0e81195b7 (doit): Fail gracefully if we fail to create all NTHREADS threads.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
e8b25005e7 (common_init): Initialize UNW_HPPA_IP based on save-location for
UNW_HPPA_RP.

2004/12/02 00:40:45-08:00 mostang.com!davidm
(common_init): Provide a minimally working implementation.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
081c41d8a6 (common_init): Don't forget to initialize sigcontext_format and
sigcontext_addr.

2004/11/17 02:43:39-08:00 mostang.com!davidm
(common_init): Don't forget to clear c->dwarf members args_size,
	ret_addr_column, pi_valid, and pi_is_dynamic.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
9fa361ed37 (bar): Fix missing initialization warned on by GCC v4.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
828d48662d (UNW_HPPA_IP): New entry.
2004/12/02 00:40:45-08:00 mostang.com!davidm
(_UPT_reg_offset): Add minimal set of definitions for HPPA.

2004/11/23 16:59:56-08:00 mostang.com!davidm
Fix offset for UNW_X86_64_RBP.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
c224ec66c5 (UNW_HPPA_EH3): Fix comment-typo.
2004/12/02 18:37:47-08:00 hp.com!davidm
(unw_tdep_fpreg_t): Make it a union of "double" and two 32-bit words.
(unw_tdep_getcontext): Fix typo.

2004/12/02 00:40:45-08:00 mostang.com!davidm
(_U_TDEP_QP_TRUE): New macro.
(UNW_TDEP_CURSOR_LEN): Increase from 127 to 511 to accommodate
	DWARF cursor-size.
(unw_word_t): Change from uint64_t to uint32_t since user-land
	PA-Linux is only 32 bits.
(hppa_regnum_t): Add register names UNW_HPPA_EH0, UNW_HPPA_EH1,
	UNW_HPPA_EH2, UNW_HPPA_EH3, UNW_HPPA_CFA, and
	UNW_HPPA_EH.
(UNW_TDEP_NUM_EH_REGS): New macro.
(unw_tdep_getcontext): Point it at UNW_ARCH_OBJ(getcontext).

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
75fb20d67d (SPILL): Adjust for Debian/sarge changes in the ucontext_t structure.
2004/12/02 00:40:45-08:00 mostang.com!davidm

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
5b20c6e082 (Logical change 1.290) 2005-05-03 09:13:17 +00:00
hp.com!davidm
f60827dc5c (LIBUNWIND_local): New macro.
(LIBUNWIND): Mention $(LIBUNWIND_local).
(test_setjmp_LDADD): Likewise.
(ia64_teset_setjmp_LDADD): Likewise.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
e12a996051 (HPPA_SCF_LINUX_SIGFRAME): Remove (PA-Linux appears to use only
real-time signal frames).
(tdep_big_endian): Fix typo.

2004/12/02 00:40:45-08:00 mostang.com!davidm
Include "elf32.h" and "dwarf.h".
(struct unw_addr_space): If we have atomic-ops, define cache_generation
	to be of type AO_t.
(struct cursor): Define it primarily in terms of the DWARF cursor.
	Add sigcontext_format and sigcontext_addr members.
Add DWARF-location accessors.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
homeip.net!davidm
bb03dca33e Add Debug statement for return-value.
2004/10/19 23:15:02-07:00 mostang.com!davidm
(update_frame_state): Take additional argument "prev_cfa".
	When we detect a NULL-frame, debug-print the IP and the CFA
	so we know where things went wrong.
(dwarf_step): Get "prev_cfa" before we call dwarf_find_save_locs(),
	since update_frame_state() doesn't actually update
	the CFA.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
homeip.net!davidm
670399d357 (pop): Returning the right element does help...
(pick): Likewise.
(dwarf_eval_expr): Fix "while" conditional so we see all operators.
	Fix DW_OP_litN typo: "opcode = DW_OP_lit0" to
	"opcode - DW_OP_lit0".
	Add lots of Debug() statements so we can see what's going
	on.  Debug level 15 will show just entry/return values.
	Debug level 16 shows all operators.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
homeip.net!davidm
7aade965b4 (DWARF_IS_REG_LOC): Define as 0 for the local-only case.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
38d99eee0a Update for v0.98.5 release.
(Logical change 1.289)
2005-04-20 21:32:20 +00:00
hp.com!davidm
cf49fe8be4 Regenerate.
(Logical change 1.289)
2005-04-20 21:32:20 +00:00
hp.com!davidm
db7dcaea5b Prepare for v0.98.5 release.
BKrev: 4266ca64K5IAauiPBgcX-B0bF1Ldsg
2005-04-20 21:32:20 +00:00
hp.com!davidm
07af27ee75 (pkg_extra): Change to .5.
(Logical change 1.289)
2005-04-20 21:32:20 +00:00
hp.com!davidm
2f9b0ab27d Fix typo: function returns unw_addr_space_t, not int.
(Logical change 1.288)
2005-04-20 21:02:21 +00:00
hp.com!davidm
7be9f14653 Fix typo in man-page for unw_create_addr_space().
BKrev: 4266c35d-aqzL23eo1PCA0eMWAfc5A
2005-04-20 21:02:21 +00:00
hp.com!davidm
4479427266 ia64: Fix off-by-one bug reported by Todd L Miller.
The rationale for this fix is as follows: for the ALIAS directive, RLEN
specifies the number if instructions for which the region behaves like
the aliased code.  For example, if RLEN=1 then the code follows the
aliased region for 1 instruction and the valid WHEN values should be 0
and 1.  However, with the unpatched code, we would have allowed for -1
and 0, which is wrong.

BKrev: 4266c3228pjJqd72q34L-r8z1RXTaA
2005-04-20 21:01:22 +00:00
hp.com!davidm
8efd6d24da (desc_alias): Fix off-by-one bug.
(Logical change 1.287)
2005-04-20 21:01:22 +00:00
hp.com!davidm
5302bf4828 (libunwind-ptrace): Fix a bug which could cause crashes due to
extraneous calls to munmap.

BKrev: 424c6923ezxqsM6TnnzUyUDFZv0-cA
2005-03-31 21:18:27 +00:00
hp.com!davidm
ea7155ebfd (get_list_addr): Clear ui->ei.image/ui->ei.size after unmapping the
image.

(Logical change 1.286)
2005-03-31 21:18:27 +00:00
hp.com!davidm
affe34c053 Update for v0.98.4 release.
(Logical change 1.285)
2005-02-24 21:36:40 +00:00
hp.com!davidm
b0bc4a6125 Prepare for 0.98.4 release.
BKrev: 421e48e8SGa9ud-v1IlueJX3Hhk7Uw
2005-02-24 21:36:40 +00:00
hp.com!davidm
cc6fea4c89 (pkg_extra): Change to .4.
(Logical change 1.285)
2005-02-24 21:36:40 +00:00
hp.com!davidm
15df8b804c (_ReadSLEB): Fix typo: shift needs to be increment before checking
for loop-exit.  Otherwise, sign-extension may clobber the
	most recently read 7 bits.

(Logical change 1.284)
2005-02-19 06:15:20 +00:00
hp.com!davidm
022a505678 (_ReadSLEB): Fix typo.
BKrev: 4216d978HJl6nJTEtzDgosMVaxzDQQ
2005-02-19 06:15:20 +00:00
hp.com!davidm
0d34dce56a Update for v0.98.2 and v0.98.3 releases.
(Logical change 1.283)
2004-11-16 22:03:04 +00:00
hp.com!davidm
272caabbfa Regenerate.
(Logical change 1.283)
2004-11-16 22:03:04 +00:00
hp.com!davidm
7e57252750 Don't check for libatomic_ops for now. We don't really need it for
x86 and ia64 and checking for it causes a dependency for libunwind
on libatomic_ops.so, which is not what we want.

BKrev: 419a79184TRq3PRIZ_E7yRe9-x4WXQ
2004-11-16 22:03:04 +00:00
hp.com!davidm
9ef9445558 Don't check for atomic_ops library for now.
(Logical change 1.283)
2004-11-16 22:03:04 +00:00
hp.com!davidm
ef6d76ffd5 (pkg_extra): Change to .3.
(Logical change 1.283)
2004-11-16 22:03:04 +00:00
hp.com!davidm
14524c439f Make all references from libunwind-ia64 to libunwind weak such that
it's possible to link against libunwind-ia64.a without needing
libunwind.a.

BKrev: 419a4b4bYWEKA80IEowZKmzBEMLkGA
2004-11-16 18:47:39 +00:00
hp.com!davidm
d15f52662a (local_find_proc_info): When compiling for libunwind-ia64, declare
_U_dyn_info_list_addr as weak and if it remained undefined,
	return -UNW_ENOINFO.

(Logical change 1.282)
2004-11-16 18:47:39 +00:00
hp.com!davidm
4e731a5572 (get_dyn_info_list_addr): When compiling into libunwind-ia64, declare
_U_dyn_info_list_addr as weak and fail if the symbol remained
	undefined.
(get_static_proc_name): Likewise for _Uelf64_get_proc_name().

(Logical change 1.282)
2004-11-16 18:47:39 +00:00
hp.com!davidm
8f3389e9f9 Regenerate.
(Logical change 1.281)
2004-11-05 00:27:40 +00:00
hp.com!davidm
3c12faa059 Fix build of static libunwind.a: turns out libtool doesn't like
full-path archive library names.  Instead, we need to use -lgcc
(and hope that GCC doesn't pick up the dynamically-linked version!).

Longer term, a better solution might be to drop the -nostdlib linker
option and to use --as-needed instead to avoid recursive references
to -lunwind.

BKrev: 418ac8fcBr462ajbr1zenCtVWTgv5Q
2004-11-05 00:27:40 +00:00
hp.com!davidm
5de169a5d8 (LIBCRTS): Use -lgcc instead.
(Logical change 1.281)
2004-11-05 00:27:40 +00:00
hp.com!davidm
0f9f815cf1 Regenerate.
(Logical change 1.280)
2004-11-03 21:50:24 +00:00
hp.com!davidm
a9a9a51681 Change version code to v0.98.2.
With GCC, link libunwind.so against libgcc.a so there are no C
runtime-system dependencies left (such as calls to __divdi3).

BKrev: 418952a0RqjKsE7N_2NLSqJn3pvfFQ
2004-11-03 21:50:24 +00:00
hp.com!davidm
e62c425ed2 (pkg_extra): Set to .2.
(LIBCRTS): For GCC, set it to the libgcc file-name.  Substitute it.

(Logical change 1.280)
2004-11-03 21:50:24 +00:00