From 5939c41c09bb679e6be11957dbe7165c14bedb33 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 27 Feb 2003 09:58:57 +0000 Subject: [PATCH] (get_static_proc_name): New function. (ia64_local_addr_space_init): Initialize get_proc_name callback. (Logical change 1.56) --- src/ia64/Ginit-ia64.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ia64/Ginit-ia64.c b/src/ia64/Ginit-ia64.c index 2c30370e..f89d84de 100644 --- a/src/ia64/Ginit-ia64.c +++ b/src/ia64/Ginit-ia64.c @@ -211,6 +211,14 @@ access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val, 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 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_fpreg = access_fpreg; local_addr_space.acc.resume = ia64_local_resume; + local_addr_space.acc.get_proc_name = get_static_proc_name; } #endif /* !UNW_REMOTE_ONLY */