1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 09:37:38 +01:00

(local_find_proc_info): Remove list-pointer argument.

(unwi_find_dynamic_proc_info): Don't pass dyn-info-list address to
	local_find_proc_info().  That list-address doesn't exist
	for REMOTE_ONLY configurations.

(Logical change 1.158)
This commit is contained in:
hp.com!davidm 2004-01-22 08:36:15 +00:00
parent f06787a83b
commit c5457c1c1b

View file

@ -31,8 +31,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#ifdef UNW_REMOTE_ONLY #ifdef UNW_REMOTE_ONLY
static inline int static inline int
local_find_proc_info (unw_dyn_info_list_t *list, local_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
int need_unwind_info, void *arg) int need_unwind_info, void *arg)
{ {
return -UNW_ENOINFO; return -UNW_ENOINFO;
@ -41,12 +40,13 @@ local_find_proc_info (unw_dyn_info_list_t *list,
#else /* !UNW_REMOTE_ONLY */ #else /* !UNW_REMOTE_ONLY */
static inline int static inline int
local_find_proc_info (unw_dyn_info_list_t *list, local_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
int need_unwind_info, void *arg) int need_unwind_info, void *arg)
{ {
unw_dyn_info_list_t *list;
unw_dyn_info_t *di; unw_dyn_info_t *di;
list = (unw_dyn_info_list_t *) _U_dyn_info_list_addr ();
for (di = list->first; di; di = di->next) for (di = list->first; di; di = di->next)
if (ip >= di->start_ip && ip < di->end_ip) if (ip >= di->start_ip && ip < di->end_ip)
return unwi_extract_dynamic_proc_info (as, ip, pi, di, need_unwind_info, return unwi_extract_dynamic_proc_info (as, ip, pi, di, need_unwind_info,
@ -82,9 +82,7 @@ unwi_find_dynamic_proc_info (unw_addr_space_t as, unw_word_t ip,
void *arg) void *arg)
{ {
if (as == unw_local_addr_space) if (as == unw_local_addr_space)
return local_find_proc_info ((unw_dyn_info_list_t *) return local_find_proc_info (as, ip, pi, need_unwind_info, arg);
_U_dyn_info_list_addr (),
as, ip, pi, need_unwind_info, arg);
else else
return remote_find_proc_info (as, ip, pi, need_unwind_info, arg); return remote_find_proc_info (as, ip, pi, need_unwind_info, arg);
} }