mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-23 00:30:29 +01:00
(_Uia64_get_kernel_table): Fix it so it actually makes some sense
again. (Logical change 1.189)
This commit is contained in:
parent
62e1a936e7
commit
cb9fde199b
1 changed files with 8 additions and 4 deletions
|
@ -347,10 +347,14 @@ get_kernel_table (unw_dyn_info_t *di)
|
|||
PROTECTED int
|
||||
_Uia64_get_kernel_table (unw_dyn_info_t *di)
|
||||
{
|
||||
if (kernel_table.u.ti.table_data)
|
||||
return kernel_table.u.ti.table_data;
|
||||
else
|
||||
return get_kernel_table (di);
|
||||
int ret;
|
||||
|
||||
if (!kernel_table.u.ti.table_data)
|
||||
if ((ret = get_kernel_table (&kernel_table)) < 0)
|
||||
return ret;
|
||||
|
||||
memcpy (di, &kernel_table, sizeof (*di));
|
||||
return 0;
|
||||
}
|
||||
|
||||
PROTECTED unw_word_t
|
||||
|
|
Loading…
Reference in a new issue