diff --git a/src/mi/Gget_proc_name.c b/src/mi/Gget_proc_name.c index 5376f82..64d2503 100644 --- a/src/mi/Gget_proc_name.c +++ b/src/mi/Gget_proc_name.c @@ -106,8 +106,12 @@ unw_get_proc_name (unw_cursor_t *cursor, char *buf, size_t buf_len, ip = tdep_get_ip (c); +#if !defined(__ia64) if (c->dwarf.use_prev_instr) --ip; +#endif error = get_proc_name (tdep_get_as (c), ip, buf, buf_len, offp, tdep_get_as_arg (c)); +#if !defined(__ia64) if (c->dwarf.use_prev_instr && offp != NULL && error == 0) *offp += 1; +#endif return error;