1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-17 21:47:37 +01:00

(get_static_proc_name): New function.

(ia64_local_addr_space_init): Initialize get_proc_name callback.

(Logical change 1.56)
This commit is contained in:
mostang.com!davidm 2003-02-27 09:58:57 +00:00
parent a3806e7c16
commit 5939c41c09

View file

@ -211,6 +211,14 @@ access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
return -UNW_EBADREG; return -UNW_EBADREG;
} }
static int
get_static_proc_name (unw_addr_space_t as, unw_word_t ip,
char *buf, size_t buf_len, unw_word_t *offp,
void *arg)
{
return _Uelf64_get_proc_name (getpid (), ip, buf, buf_len, offp);
}
HIDDEN void HIDDEN void
ia64_local_addr_space_init (void) ia64_local_addr_space_init (void)
{ {
@ -225,6 +233,7 @@ ia64_local_addr_space_init (void)
local_addr_space.acc.access_reg = access_reg; local_addr_space.acc.access_reg = access_reg;
local_addr_space.acc.access_fpreg = access_fpreg; local_addr_space.acc.access_fpreg = access_fpreg;
local_addr_space.acc.resume = ia64_local_resume; local_addr_space.acc.resume = ia64_local_resume;
local_addr_space.acc.get_proc_name = get_static_proc_name;
} }
#endif /* !UNW_REMOTE_ONLY */ #endif /* !UNW_REMOTE_ONLY */