diff --git a/include/dwarf.h b/include/dwarf.h index 938f2a2f..1068ba86 100644 --- a/include/dwarf.h +++ b/include/dwarf.h @@ -198,7 +198,7 @@ dwarf_cfa_t; #define DW_EH_PE_funcrel 0x40 /* start-of-procedure-relative */ #define DW_EH_PE_aligned 0x50 /* aligned pointer */ -extern HIDDEN struct mempool dwarf_reg_state_pool; +extern struct mempool dwarf_reg_state_pool; #ifdef UNW_LOCAL_ONLY @@ -598,33 +598,33 @@ dwarf_cursor_t; #define dwarf_read_encoded_pointer UNW_OBJ (dwarf_read_encoded_pointer) #define dwarf_step UNW_OBJ (dwarf_step) -extern HIDDEN int dwarf_init (void); -extern HIDDEN int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip, - unw_proc_info_t *pi, - int need_unwind_info, void *arg); -extern HIDDEN int dwarf_search_unwind_table (unw_addr_space_t as, - unw_word_t ip, - unw_dyn_info_t *di, - unw_proc_info_t *pi, - int need_unwind_info, void *arg); -extern HIDDEN void dwarf_put_unwind_info (unw_addr_space_t as, - unw_proc_info_t *pi, void *arg); -extern HIDDEN int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t *addr, - unw_word_t len, unw_word_t *valp, - int *is_register); -extern HIDDEN int dwarf_parse_fde (unw_addr_space_t as, unw_accessors_t *a, - unw_word_t *addr, unw_proc_info_t *pi, - unw_dyn_dwarf_fde_info_t *dfi, void *arg); -extern HIDDEN int dwarf_find_save_locs (struct dwarf_cursor *c); -extern HIDDEN int dwarf_create_state_record (struct dwarf_cursor *c, - dwarf_state_record_t *sr); -extern HIDDEN int dwarf_make_proc_info (struct dwarf_cursor *c); -extern HIDDEN int dwarf_read_encoded_pointer (unw_addr_space_t as, - unw_accessors_t *a, - unw_word_t *addr, - unsigned char encoding, - unw_proc_info_t *pi, - unw_word_t *valp, void *arg); -extern HIDDEN int dwarf_step (struct dwarf_cursor *c); +extern int dwarf_init (void); +extern int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip, + unw_proc_info_t *pi, + int need_unwind_info, void *arg); +extern int dwarf_search_unwind_table (unw_addr_space_t as, + unw_word_t ip, + unw_dyn_info_t *di, + unw_proc_info_t *pi, + int need_unwind_info, void *arg); +extern void dwarf_put_unwind_info (unw_addr_space_t as, + unw_proc_info_t *pi, void *arg); +extern int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t *addr, + unw_word_t len, unw_word_t *valp, + int *is_register); +extern int dwarf_parse_fde (unw_addr_space_t as, unw_accessors_t *a, + unw_word_t *addr, unw_proc_info_t *pi, + unw_dyn_dwarf_fde_info_t *dfi, void *arg); +extern int dwarf_find_save_locs (struct dwarf_cursor *c); +extern int dwarf_create_state_record (struct dwarf_cursor *c, + dwarf_state_record_t *sr); +extern int dwarf_make_proc_info (struct dwarf_cursor *c); +extern int dwarf_read_encoded_pointer (unw_addr_space_t as, + unw_accessors_t *a, + unw_word_t *addr, + unsigned char encoding, + unw_proc_info_t *pi, + unw_word_t *valp, void *arg); +extern int dwarf_step (struct dwarf_cursor *c); #endif /* dwarf_h */ diff --git a/include/mempool.h b/include/mempool.h index 5f873a86..560a9e52 100644 --- a/include/mempool.h +++ b/include/mempool.h @@ -75,15 +75,15 @@ struct mempool /* Emergency allocation for one-time stuff that doesn't fit the memory pool model. A limited amount of memory is available in this fashion and once allocated, there is no way to free it. */ -extern HIDDEN void *sos_alloc (size_t size); +extern void *sos_alloc (size_t size); /* Initialize POOL for an object size of OBJECT_SIZE bytes. RESERVE is the number of objects that should be reserved for use under tight memory situations. If it is zero, mempool attempts to pick a reasonable default value. */ -extern HIDDEN void mempool_init (struct mempool *pool, +extern void mempool_init (struct mempool *pool, size_t obj_size, size_t reserve); -extern HIDDEN void *mempool_alloc (struct mempool *pool); -extern HIDDEN void mempool_free (struct mempool *pool, void *object); +extern void *mempool_alloc (struct mempool *pool); +extern void mempool_free (struct mempool *pool, void *object); #endif /* mempool_h */ diff --git a/include/tdep-ia64.h b/include/tdep-ia64.h index 6f74daea..7389d3f0 100644 --- a/include/tdep-ia64.h +++ b/include/tdep-ia64.h @@ -211,6 +211,6 @@ extern void *tdep_uc_addr (ucontext_t *uc, unw_regnum_t regnum); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff); -extern HIDDEN struct ia64_global_unwind_state unw; +extern struct ia64_global_unwind_state unw; #endif /* TDEP_IA64_H */ diff --git a/include/x86/dwarf-config.h b/include/x86/dwarf-config.h index 5616445c..0636db78 100644 --- a/include/x86/dwarf-config.h +++ b/include/x86/dwarf-config.h @@ -37,7 +37,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ unw_cursor_t. */ #define dwarf_to_cursor(c) ((unw_cursor_t *) (c)) -HIDDEN extern uint8_t dwarf_to_unw_regnum_map[19]; +extern uint8_t dwarf_to_unw_regnum_map[19]; static inline unw_regnum_t dwarf_to_unw_regnum (unw_word_t regnum) diff --git a/src/_UPT_internal.h b/src/_UPT_internal.h index 2e5975e0..aef6b823 100644 --- a/src/_UPT_internal.h +++ b/src/_UPT_internal.h @@ -50,12 +50,12 @@ struct UPT_info #endif }; -extern HIDDEN int _UPT_reg_offset[UNW_REG_LAST + 1]; +extern int _UPT_reg_offset[UNW_REG_LAST + 1]; -extern HIDDEN unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui, - unw_addr_space_t as, - char *path, - unw_word_t segbase, - unw_word_t mapoff); +extern unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui, + unw_addr_space_t as, + char *path, + unw_word_t segbase, + unw_word_t mapoff); #endif /* _UPT_internal_h */ diff --git a/src/elfxx.h b/src/elfxx.h index f6a0e5d5..694c03dc 100644 --- a/src/elfxx.h +++ b/src/elfxx.h @@ -67,7 +67,7 @@ elf_map_image (struct elf_image *ei, const char *path) return 0; } -extern HIDDEN int elf_w (valid_object) (struct elf_image *ei); -extern HIDDEN int elf_w (get_proc_name) (pid_t pid, unw_word_t ip, - char *buf, size_t len, - unw_word_t *offp); +extern int elf_w (valid_object) (struct elf_image *ei); +extern int elf_w (get_proc_name) (pid_t pid, unw_word_t ip, + char *buf, size_t len, + unw_word_t *offp);