1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-28 17:39:29 +02:00

(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)
This commit is contained in:
mostang.com!davidm 2004-01-20 23:32:28 +00:00
parent 74dfbb0769
commit 2d4098ac19

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (C) 2001-2003 Hewlett-Packard Co Copyright (C) 2001-2004 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind. This file is part of libunwind.
@ -186,7 +186,6 @@ struct ia64_global_unwind_state
struct mempool labeled_state_pool; struct mempool labeled_state_pool;
# if UNW_DEBUG # if UNW_DEBUG
long debug_level;
const char *preg_name[IA64_NUM_PREGS]; const char *preg_name[IA64_NUM_PREGS];
# endif # endif
}; };
@ -194,7 +193,7 @@ struct ia64_global_unwind_state
/* Platforms that support UNW_INFO_FORMAT_TABLE need to define /* Platforms that support UNW_INFO_FORMAT_TABLE need to define
tdep_search_unwind_table. */ tdep_search_unwind_table. */
#define tdep_search_unwind_table(a,b,c,d,e,f) \ #define tdep_search_unwind_table(a,b,c,d,e,f) \
UNW_OBJ(search_unwind_table) (a, b, c, d, e, f) unw_search_ia64_unwind_table(a,b,c,d,e,f)
#define tdep_find_proc_info UNW_OBJ(find_proc_info) #define tdep_find_proc_info UNW_OBJ(find_proc_info)
#define tdep_uc_addr(uc,reg) UNW_OBJ(uc_addr)(uc, reg) #define tdep_uc_addr(uc,reg) UNW_OBJ(uc_addr)(uc, reg)
#define tdep_get_elf_image(a,b,c,d,e) UNW_ARCH_OBJ(get_elf_image) (a, b, c, \ #define tdep_get_elf_image(a,b,c,d,e) UNW_ARCH_OBJ(get_elf_image) (a, b, c, \
@ -203,9 +202,14 @@ struct ia64_global_unwind_state
# define tdep_put_unwind_info(a,b,c) UNW_OBJ(put_unwind_info)(a, b, c) # define tdep_put_unwind_info(a,b,c) UNW_OBJ(put_unwind_info)(a, b, c)
#endif #endif
#define tdep_debug_level unw.debug_level #define tdep_debug_level UNW_ARCH_OBJ(debug_level)
extern long tdep_debug_level;
#define unw UNW_OBJ(data) /* This can't be an UNW_ARCH_OBJ() because we need separate
unw.initialized flags for the local-only and generic versions of
the library. Also, if we wanted to have a single, shared global
data structure, we couldn't declare "unw" as HIDDEN/PROTECTED. */
#define unw UNW_OBJ(data)
extern int tdep_find_proc_info (unw_addr_space_t as, unw_word_t ip, extern int tdep_find_proc_info (unw_addr_space_t as, unw_word_t ip,
unw_proc_info_t *pi, int need_unwind_info, unw_proc_info_t *pi, int need_unwind_info,