mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 17:17:39 +01:00
x86-64: fix unw_get_proc_info()
(Logical change 1.260)
This commit is contained in:
parent
bca75e7d65
commit
e09e6ce1ad
1 changed files with 6 additions and 1 deletions
|
@ -31,6 +31,11 @@ PROTECTED int
|
||||||
unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi)
|
unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi)
|
||||||
{
|
{
|
||||||
struct cursor *c = (struct cursor *) cursor;
|
struct cursor *c = (struct cursor *) cursor;
|
||||||
|
int ret;
|
||||||
|
|
||||||
return dwarf_make_proc_info (&c->dwarf);
|
if (ret = dwarf_make_proc_info (&c->dwarf))
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
*pi = c->dwarf.pi;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue