mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-23 00:30:29 +01:00
(unwi_get_proc_name): If UNW_REMOTE_ONLY is defined and the procedure
isn't a dynamically generated one, just punt and return -UNW_ENOINFO. (Logical change 1.48)
This commit is contained in:
parent
89344cf672
commit
cd6b1537ce
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,9 @@ unwi_get_proc_name (unw_addr_space_t as, unw_word_t ip, int is_local,
|
|||
|
||||
/* not a dynamic procedure */
|
||||
|
||||
#ifdef UNW_REMOTE_ONLY
|
||||
return -UNW_ENOINFO;
|
||||
#else
|
||||
if (!is_local)
|
||||
/* It makes no sense to implement get_proc_name() for remote
|
||||
address spaces because that would require a callback and in
|
||||
|
@ -97,4 +100,5 @@ unwi_get_proc_name (unw_addr_space_t as, unw_word_t ip, int is_local,
|
|||
return -UNW_ENOINFO;
|
||||
|
||||
return tdep_get_proc_name (ip, buf, buf_len, offp);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue