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

2633 commits

Author SHA1 Message Date
hp.com!davidm
eacc4f2073 Initial revision 2003-04-21 23:14:14 +00:00
hp.com!davidm
97bb02decb Fix up x86 implementation sufficiently to get at least through some of
the test-suite.  At the moment, a debian/unstable system will pass
5 out of 10 tests.  Not bad, actually.

BKrev: 3ea47b46irKJW4lXSgzLVizwW1jOMg
2003-04-21 23:14:14 +00:00
hp.com!davidm
63a539999d (x86_access_reg): Add a debug statement so accesses to bad register numbers
can be seen with debugging enabled.

(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
c91cfd2f5d (unw_is_signal_frame): On Linux, do code-reading to see if a given cursor
is a signal-frame.  This will break if the 8 bytes at EIP are not
	readable.


(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
2c7e76f27a (unw_get_proc_info): Implement a minimalistic version for x86.
(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
5c2c73523c (siglongjmp): If there aren't at least 4 eh-regs, abort() for now. In
the future, we may want to support this for real by putting the
	necessary info on the stack.

(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
33e6e3fc1e (libunwind_la_SOURCES_x86): Mention regname-x86.c, Ginit_remote-x86.c,
Gis_signal_frame-x86.c, Gcreate_addr_space.c, Lcreate_addr_space.c,
	Linit_remote-x86,  and Lis_signal_frame-x86.c.

(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
07721f3487 (get_static_proc_name): New function.
(x86_local_addr_space_init): Initialize get_proc_name() callback.

(Logical change 1.81)
2003-04-21 23:14:14 +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
79f981aaf7 (_U_TDEP_QP_TRUE): New macro.
(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
bbfe13cce0 (_UPT_reg_offset): Fix off-by-1 error.
(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
060850b2c7 (_UPT_access_reg): When ptrace() returns an error, branch to common
"badreg" error handler.

(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
de5b16e4a8 (_UI_siglongjmp_cont): Implement a dummy handler.
(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
508f65f8b9 Regenerate.
(Logical change 1.80)
2003-04-21 18:56:16 +00:00
hp.com!davidm
b52964ae93 Mention Lset_reg-x86.c in Makefile.am.
BKrev: 3ea43ed0qn8YaKOnFfhsUbQraAHcAQ
2003-04-21 18:56:16 +00:00
hp.com!davidm
ed625d646e (libunwind_la_SOURCES_x86): Mention Lset_reg-x86.c.
(Logical change 1.80)
2003-04-21 18:56:16 +00:00
hp.com!davidm
796bd962e3 Regenerate.
(Logical change 1.79)
2003-04-21 18:46:23 +00:00
hp.com!davidm
673202d4b6 Mention Gset_reg-x86.c in Makefile.am.
BKrev: 3ea43c7fKWESKeH80RW-5Vri4p608g
2003-04-21 18:46:23 +00:00
hp.com!davidm
1b770df7ef (libunwind_la_SOURCES_x86): Mention Gset_reg-x86.c.
(Logical change 1.79)
2003-04-21 18:46:23 +00:00
mostang.com!davidm
2b6bb97b73 TODO:
new file

BKrev: 3ea43ab8FYmclmZj-Nd3hIbJD-TNCQ
2003-04-21 18:38:48 +00:00
mostang.com!davidm
1cabc10100 (Logical change 1.78) 2003-04-21 18:38:48 +00:00
mostang.com!davidm
8c84eddb41 Initial revision 2003-04-21 18:38:48 +00:00
mostang.com!davidm
0ba8ae44bc Fix up hp-ux support some more. It works for some simple unwinding purposes, but
unwinding across signals doesn't (and can't) work at the moment.

BKrev: 3e933ba8oySwu4USgXnuugmmagOteg
2003-04-08 21:14:16 +00:00
mostang.com!davidm
60b8811527 (update_frame_state): On HP-UX, catch ucontext_t location from r32.
(Logical change 1.77)
2003-04-08 21:14:16 +00:00
mostang.com!davidm
fb293ae33d (struct unwind_header): Rename member "unknown1" to "format".
(Logical change 1.77)
2003-04-08 21:14:16 +00:00
mostang.com!davidm
d9ba5fb915 (desc_abi): Also recognize ".unwabi @hpux, 1" as a signal trampoline.
(Logical change 1.77)
2003-04-08 21:14:16 +00:00
mostang.com!davidm
b10a6c5b9f (SYSCALL_CFM_SAVE_REG): New macro.
(REASON_SYSCALL): Ditto.
(access_reg): Use __uc_get_reason() to determine how ucontext_t was created.
	Handle UNW_IA64_AR_BSP differently depending on whether or not
	ucontext_t was created by a syscall.  Ditto for UNW_IA64_IP and
	UNW_IA64_CFM.  Add debug statement.

(Logical change 1.77)
2003-04-08 21:14:16 +00:00
mostang.com!davidm
0802cd49ad (rbs_find_stacked): Allow NULL locp.
(Logical change 1.76)
2003-04-08 20:34:06 +00:00
mostang.com!davidm
7057901782 (ia64_get_stacked): Allow NULL "locp".
(Logical change 1.76)
2003-04-08 20:34:06 +00:00
mostang.com!davidm
dc0bee88f3 (ia64_get_stacked): Allow "locp" argument to be NULL. Reported by Jeff Johnston.
BKrev: 3e93323eXbhj-ovOQFYlZtd-tFsKIg
2003-04-08 20:34:06 +00:00
mostang.com!davidm
bc41c6ad9f [HAVE_SYS_UC_ACCESS_H]: Add include of <sys/uc_access.h>.
(access_reg) [HAVE_SYS_UC_ACCESS_H]: New function.
(access_fpreg) [HAVE_SYS_UC_ACCESS_H]: New function.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
6ab15cdec4 Regenerate.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
89c081cd84 On HP-UX, unset UNW_LOCAL_ONLY and defined UNW_GENERIC_ONLY, since it makes no
sense to do UNW_LOCAL_ONLY on this platform.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
d53636d414 Move endian-stuff to internal.h.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
a04f38ef19 Move endian-related defs from tdep-ia64.h to here.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
4f8ab6abb9 More portability fixes and improvements for HP-UX (libunwind compiles now on HP-UX).
BKrev: 3e8be9d3I-C-yxueB1ndoYTyOhYKGA
2003-04-03 07:59:15 +00:00
mostang.com!davidm
e4ea1bcdb8 Drop include of <endian.h>.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
aa371f972e Don't include <endian.h>.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
50e11fa8b2 Compile an L-file only if UNW_LOCAL_ONLY surives past the include of <libunwind.h>.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
8d057cb800 Add note on building libunwind on HP-UX.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
ebfaebdee9 Add check for -luca (needed on HP-UX).
Add check for <sys/uc_access.h> (needed on HP-UX).
(OS_HPUX): New conditional.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
b513773cb2 (unw_init_local): Do sc_rbs_base manipulation only if HAVE_SYS_UC_ACCES_H is not
defined.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
3b5cb41875 (local_resume): Unsupported on HP-UX for now.
(remote_install_cursor): Ditto.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
5929f8e02b (libunwind_la_SOURCES_os_hpux): New macro.
(libunwind_la_SOURCES_os): For HP-UX, use libunwind_la_SOURCES_os_hpux.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
ee12f505ed (is_local_addr_space): Test for _ULia64_local_addr_space only if UNW_GENERIC_ONLY
is not defined.
(tdep_find_proc_info) [HAVE_DLMODINFO): Declare new type "struct unwind_header"
	to accommodate HP-UX unwind header.  Fetch unwind table from this
	header.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
9abe0decf0 (ia64_init): Call _ULia64_local_addr_space_init() only if UNW_GENERIC_ONLY is
not defined.

(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
4ca42d4a0c (get_unwind_info): _Only call _Uia64_get_kernel_table() on Linux.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
9c23f9c408 (elf_map_image): Declare "path" argument as "const".
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
7c76ce7910 Turn off questions about logging.
(Logical change 1.74)
2003-04-01 07:19:34 +00:00