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

1433 commits

Author SHA1 Message Date
mostang.com!davidm
46a75eaddf Initial revision 2004-01-20 23:50:00 +00:00
mostang.com!davidm
0fa4804fe4 ia64: Fix missing prototypes and clean up name-space issues as much
as possible.

BKrev: 400dba8cProHxFzftweAbEsjMpGUXA
2004-01-20 23:32:28 +00:00
mostang.com!davidm
81beef6941 Include "internal.h" instead of "unwind_i.h" to avoid name-space
pollution when compiling with debugging enabled.  The name-space
pollution came from the fact that functions won't be inlined in this
case and that ended up generating dead code with references to
non-existent functions.

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
6535a330cf Include "internal.h" and "tdep.h" instead of "unwind_i.h" to avoid
name-space pollution when compiling with debugging enabled.  The
name-space pollution came from the fact that functions won't be
inlined in this case and that ended up generating dead code with
references to non-existent functions.


(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
c1bbbb2a3a (unwi_dyn_validate_cache): Declare.
(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
54ef1c8712 (unw_search_ia64_unwind_table): Rename from tdep_search_unwind_table().
(_Uia64_get_kernel_table): Define only when UNW_LOCAL_ONLY is not
	defined.
(_Uia64_find_dyn_list): Likewise.
(ia64_local_validate_cache): Fix prototype (second argument was
	missing).

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
2d4098ac19 (unw): Remove debug_level.
(tdep_debug_level): Declare it as a separate variable.  This
	ensures that only one debug-level variable is in use
	at any given time, no matter what combination of
	local-only vs generic and static vs. dynamic libraries
	are in use.
(unw): Document why it's not an UNW_ARCH_OBJ().

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
74dfbb0769 (tdep_debug_level): Define.
(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
4c61d17686 (ia64_validate_cache): Declare.
(ia64_local_validate_cache): Likewise.

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
1fd74a4332 (ia64_uc_access_reg): Define only if not UNW_LOCAL_ONLY is defined.
(ia64_uc_access_fpreg): Likewise.

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
fa1e694c0a (create_state_record_for): Check tdep_debug_level instead of
unw.debug_level.

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
9099235bd7 (common_init): Pass c->as_arg as second argument to
ia64_validate_cache().

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
mostang.com!davidm
47c32cd07f (_Uia64_search_unwind_table): Make it an UNW_OBJ() instead.
(unw_search_ia64_unwind_table): Declare.

(Logical change 1.154)
2004-01-20 23:32:28 +00:00
hp.com!davidm
0ce0769a98 ia64: Fix caching such that stale data gets flushed automatically
(provided the C library supports it).

BKrev: 400c8995bgbB4UdHQQKyoPeUKxcc7g
2004-01-20 01:51:17 +00:00
hp.com!davidm
a7aaf01e8a Update.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
63390c2267 Cleanup file to make it easier to read.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
20a192c216 (unwi_dyn_remote_find_proc_info): Drop GENP argument.
(unwi_dyn_validate_cache): New function.

(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
ea78d27d97 (unwi_dyn_remote_find_proc_info): Drop GENERATION argument.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
0371bad3eb (tdep_search_unwind_table): Initialize segbase to zero to avoid
compiler-warning.
(check_callback): New function.
(validate_cache): Likewise.
(ia64_local_validate_cache): Likewise.

(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
a2301f6f57 (struct unw_addr_space.shared_object_removals) [!UNW_REMOTE_ONLY]: New member.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
641b12427d (ia64_validate_cache): New function.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
hp.com!davidm
172b01d775 (common_init): If caching is enabled, validate the cache first.
(Logical change 1.153)
2004-01-20 01:51:17 +00:00
mostang.com!davidm
95589da62c Regenerate.
(Logical change 1.152)
2004-01-14 06:21:52 +00:00
mostang.com!davidm
de5e9ddcf6 Minor Makefile fixes.
BKrev: 4004e000yXlnK3dtA2NOZWMLn3gl3A
2004-01-14 06:21:52 +00:00
mostang.com!davidm
a6b0ccf783 Make lines fit in 80 columns again.
(libunwind_la_SOURCES_x86_common): Fix typo: rename from
	libunwind_la_SOURCES_x86.

(Logical change 1.152)
2004-01-14 06:21:52 +00:00
hp.com!davidm
e703b3d278 Use print_error() instead of fprintf() to stderr.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
7583863b9f Split libunwind into three separate libraries:
libunwind		for local unwinding only
	libunwind-$ARCH		for generic unwinding
	libunwind-ptrace	for the _UPT-convenience functions

Also, many small tweaks to reduce the number of dynamic relocs that
are needed by libunwind.so.  For IA-64, we're down to:

	13 REL64/FPTR64 relocations
	27 IPLT relocations
	32 NONE relocations

BKrev: 3ff69e70FKxyD9S7ZHpBSSlxEdJLWQ
2004-01-03 10:50:24 +00:00
hp.com!davidm
23f31e44a7 Rename: src/ia64/global-asm-ia64.S -> src/ia64/dyn_info_list-ia64.S
}(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
8d331ad2ae Rename: src/ia64/global-asm-ia64.S -> src/ia64/dyn_info_list-ia64.S
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
d28aba1c56 Regenerate.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
972a85f7fd Minor reformatting.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
1656663941 Major restructuring to allow for separate local-only vs. generic
libunwind.

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
e0585b4a71 Initial revision 2004-01-03 10:50:24 +00:00
hp.com!davidm
adcb01f57f Don't define UNW_LOCAL_ONLY before including libunwind.h. That was
a bad idea.

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
fe8b77aeaf Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

}(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
be467abeac Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

2004/01/03 00:25:12-08:00 hp.com!davidm
Rename: src/ia64/set_caching_policy-ia64.c -> src/ia64/Gset_caching_policy-ia64.c

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
8578c3133a Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

2004/01/03 00:24:50-08:00 hp.com!davidm
Rename: src/ia64/get_accessors-ia64.c -> src/ia64/Gget_accessors-ia64.c

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
bf82624a21 Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

(is_local_addr_space): Define UNW_LOCAL_ONLY and generic versions.
(read_mem): New function.
(tdep_put_unwind_info): Define only if not UNW_LOCAL_ONLY.
(tdep_search_unwind_table): Rename from _Uia64_search_unwind_table().
	Optimize away stuff that isn't needed for UNW_LOCAL_ONLY.
	Use read_mem() instead of open-coding accesses via
	access_mem() callback.
(get_kernel_table): Rename from _Uia64_get_kernel_table().
(_Uia64_get_kernel_table): Define for non-UNW_LOCAL_ONLY case so
	that libunwind-ptrace.a can get to it.

}(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
e9815e6cce Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

(is_local_addr_space): Define UNW_LOCAL_ONLY and generic versions.
(read_mem): New function.
(tdep_put_unwind_info): Define only if not UNW_LOCAL_ONLY.
(tdep_search_unwind_table): Rename from _Uia64_search_unwind_table().
	Optimize away stuff that isn't needed for UNW_LOCAL_ONLY.
	Use read_mem() instead of open-coding accesses via
	access_mem() callback.
(get_kernel_table): Rename from _Uia64_get_kernel_table().
(_Uia64_get_kernel_table): Define for non-UNW_LOCAL_ONLY case so
	that libunwind-ptrace.a can get to it.

2004/01/03 00:33:30-08:00 hp.com!davidm
Rename: src/ia64/tables-ia64.c -> src/ia64/Gtables-ia64.c

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
c4f5974dd1 Declare libunwind-entry-points as PROTECTED to ensure local uses get
resolved within the library itself.

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
23024e28c0 Add includes of <string.h> and <unistd.h>.
(NORETURN): New macro.
(PROTECTED): Likewise.
(print_error): New inline routine.
(fetch8): Provide UNW_LOCAL_ONLY-version.
(fetch16): Likewise.
(fetch32): Likewise.
(fetchw): Likewise.
(_U_dyn_info_list_addr): Declare.

(Logical change 1.151)
2004-01-03 10:50:24 +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
9b52d39425 (tdep_find_proc_info): Declare it as a regular object (not arch-obj).
(tdep_uc_addr): Likewise.
(tdep_put_unwind_info): Define only if not UNW_LOCAL_ONLY.
(unw): Declare as regular object.

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
fa6ca5610d (sos_memp): Drop static initializer.
(pg_size): Likewise.
(sos_alloc): Initialize sos_memp if it's still 0.

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
0b29e6839b (local_find_proc_info): Take new LIST argument.
(unwi_find_dynamic_proc_info): Pass LIST argument to
	local_find_proc_info().

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
98f917270f (intern_string): Declare as "inline".
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
a83c8a7397 (ia64_init): Declare as a regular object, not an arch-object.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
d6e1c59b81 (_U_dyn_info_lists): Remove definition.
(ia64_init): Simply call ia64_local_addr_space_init() (unless
	UNW_REMOTE_ONLY is defined).

}(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
31a7a2c546 (_U_dyn_info_lists): Remove definition.
(ia64_init): Simply call ia64_local_addr_space_init() (unless
	UNW_REMOTE_ONLY is defined).

2004/01/02 23:05:52-08:00 hp.com!davidm
Rename: src/ia64/global-ia64.c -> src/ia64/Gglobal-ia64.c

(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
b1036f45c9 (Logical change 1.151) 2004-01-03 10:50:24 +00:00