mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
Drop HIDDEN from declarations, only the definitions need it.
(Logical change 1.150)
This commit is contained in:
parent
693485b3f0
commit
b9d2cc7919
6 changed files with 45 additions and 45 deletions
|
@ -198,7 +198,7 @@ dwarf_cfa_t;
|
||||||
#define DW_EH_PE_funcrel 0x40 /* start-of-procedure-relative */
|
#define DW_EH_PE_funcrel 0x40 /* start-of-procedure-relative */
|
||||||
#define DW_EH_PE_aligned 0x50 /* aligned pointer */
|
#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
|
#ifdef UNW_LOCAL_ONLY
|
||||||
|
|
||||||
|
@ -598,33 +598,33 @@ dwarf_cursor_t;
|
||||||
#define dwarf_read_encoded_pointer UNW_OBJ (dwarf_read_encoded_pointer)
|
#define dwarf_read_encoded_pointer UNW_OBJ (dwarf_read_encoded_pointer)
|
||||||
#define dwarf_step UNW_OBJ (dwarf_step)
|
#define dwarf_step UNW_OBJ (dwarf_step)
|
||||||
|
|
||||||
extern HIDDEN int dwarf_init (void);
|
extern int dwarf_init (void);
|
||||||
extern HIDDEN int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip,
|
extern int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip,
|
||||||
unw_proc_info_t *pi,
|
unw_proc_info_t *pi,
|
||||||
int need_unwind_info, void *arg);
|
int need_unwind_info, void *arg);
|
||||||
extern HIDDEN int dwarf_search_unwind_table (unw_addr_space_t as,
|
extern int dwarf_search_unwind_table (unw_addr_space_t as,
|
||||||
unw_word_t ip,
|
unw_word_t ip,
|
||||||
unw_dyn_info_t *di,
|
unw_dyn_info_t *di,
|
||||||
unw_proc_info_t *pi,
|
unw_proc_info_t *pi,
|
||||||
int need_unwind_info, void *arg);
|
int need_unwind_info, void *arg);
|
||||||
extern HIDDEN void dwarf_put_unwind_info (unw_addr_space_t as,
|
extern void dwarf_put_unwind_info (unw_addr_space_t as,
|
||||||
unw_proc_info_t *pi, void *arg);
|
unw_proc_info_t *pi, void *arg);
|
||||||
extern HIDDEN int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t *addr,
|
extern int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t *addr,
|
||||||
unw_word_t len, unw_word_t *valp,
|
unw_word_t len, unw_word_t *valp,
|
||||||
int *is_register);
|
int *is_register);
|
||||||
extern HIDDEN int dwarf_parse_fde (unw_addr_space_t as, unw_accessors_t *a,
|
extern int dwarf_parse_fde (unw_addr_space_t as, unw_accessors_t *a,
|
||||||
unw_word_t *addr, unw_proc_info_t *pi,
|
unw_word_t *addr, unw_proc_info_t *pi,
|
||||||
unw_dyn_dwarf_fde_info_t *dfi, void *arg);
|
unw_dyn_dwarf_fde_info_t *dfi, void *arg);
|
||||||
extern HIDDEN int dwarf_find_save_locs (struct dwarf_cursor *c);
|
extern int dwarf_find_save_locs (struct dwarf_cursor *c);
|
||||||
extern HIDDEN int dwarf_create_state_record (struct dwarf_cursor *c,
|
extern int dwarf_create_state_record (struct dwarf_cursor *c,
|
||||||
dwarf_state_record_t *sr);
|
dwarf_state_record_t *sr);
|
||||||
extern HIDDEN int dwarf_make_proc_info (struct dwarf_cursor *c);
|
extern int dwarf_make_proc_info (struct dwarf_cursor *c);
|
||||||
extern HIDDEN int dwarf_read_encoded_pointer (unw_addr_space_t as,
|
extern int dwarf_read_encoded_pointer (unw_addr_space_t as,
|
||||||
unw_accessors_t *a,
|
unw_accessors_t *a,
|
||||||
unw_word_t *addr,
|
unw_word_t *addr,
|
||||||
unsigned char encoding,
|
unsigned char encoding,
|
||||||
unw_proc_info_t *pi,
|
unw_proc_info_t *pi,
|
||||||
unw_word_t *valp, void *arg);
|
unw_word_t *valp, void *arg);
|
||||||
extern HIDDEN int dwarf_step (struct dwarf_cursor *c);
|
extern int dwarf_step (struct dwarf_cursor *c);
|
||||||
|
|
||||||
#endif /* dwarf_h */
|
#endif /* dwarf_h */
|
||||||
|
|
|
@ -75,15 +75,15 @@ struct mempool
|
||||||
/* Emergency allocation for one-time stuff that doesn't fit the memory
|
/* Emergency allocation for one-time stuff that doesn't fit the memory
|
||||||
pool model. A limited amount of memory is available in this
|
pool model. A limited amount of memory is available in this
|
||||||
fashion and once allocated, there is no way to free it. */
|
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
|
/* Initialize POOL for an object size of OBJECT_SIZE bytes. RESERVE
|
||||||
is the number of objects that should be reserved for use under
|
is the number of objects that should be reserved for use under
|
||||||
tight memory situations. If it is zero, mempool attempts to pick a
|
tight memory situations. If it is zero, mempool attempts to pick a
|
||||||
reasonable default value. */
|
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);
|
size_t obj_size, size_t reserve);
|
||||||
extern HIDDEN void *mempool_alloc (struct mempool *pool);
|
extern void *mempool_alloc (struct mempool *pool);
|
||||||
extern HIDDEN void mempool_free (struct mempool *pool, void *object);
|
extern void mempool_free (struct mempool *pool, void *object);
|
||||||
|
|
||||||
#endif /* mempool_h */
|
#endif /* mempool_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,
|
extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
||||||
unsigned long *segbase, unsigned long *mapoff);
|
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 */
|
#endif /* TDEP_IA64_H */
|
||||||
|
|
|
@ -37,7 +37,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
unw_cursor_t. */
|
unw_cursor_t. */
|
||||||
#define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
|
#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
|
static inline unw_regnum_t
|
||||||
dwarf_to_unw_regnum (unw_word_t regnum)
|
dwarf_to_unw_regnum (unw_word_t regnum)
|
||||||
|
|
|
@ -50,12 +50,12 @@ struct UPT_info
|
||||||
#endif
|
#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,
|
extern unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui,
|
||||||
unw_addr_space_t as,
|
unw_addr_space_t as,
|
||||||
char *path,
|
char *path,
|
||||||
unw_word_t segbase,
|
unw_word_t segbase,
|
||||||
unw_word_t mapoff);
|
unw_word_t mapoff);
|
||||||
|
|
||||||
#endif /* _UPT_internal_h */
|
#endif /* _UPT_internal_h */
|
||||||
|
|
|
@ -67,7 +67,7 @@ elf_map_image (struct elf_image *ei, const char *path)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern HIDDEN int elf_w (valid_object) (struct elf_image *ei);
|
extern int elf_w (valid_object) (struct elf_image *ei);
|
||||||
extern HIDDEN int elf_w (get_proc_name) (pid_t pid, unw_word_t ip,
|
extern int elf_w (get_proc_name) (pid_t pid, unw_word_t ip,
|
||||||
char *buf, size_t len,
|
char *buf, size_t len,
|
||||||
unw_word_t *offp);
|
unw_word_t *offp);
|
||||||
|
|
Loading…
Reference in a new issue