mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-18 11:01:41 +01:00
Fix x86 b
(Logical change 1.104)
This commit is contained in:
parent
197801e353
commit
d7d831e9bb
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ do_backtrace (void)
|
||||||
if (unw_get_proc_name (&cursor, name, sizeof (name), &off) == 0)
|
if (unw_get_proc_name (&cursor, name, sizeof (name), &off) == 0)
|
||||||
{
|
{
|
||||||
if (off)
|
if (off)
|
||||||
snprintf (buf, sizeof (buf), "<%s+0x%lx>", name, off);
|
snprintf (buf, sizeof (buf), "<%s+0x%lx>", name, (long) off);
|
||||||
else
|
else
|
||||||
snprintf (buf, sizeof (buf), "<%s>", name);
|
snprintf (buf, sizeof (buf), "<%s>", name);
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ sighandler (int signal, void *siginfo, void *context)
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
#elif UNW_TARGET_X86
|
#elif UNW_TARGET_X86
|
||||||
printf (" @ %lx", sc.eip);
|
printf (" @ %lx", uc->uc_mcontext.gregs[REG_EIP]);
|
||||||
#endif
|
#endif
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue