1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-26 21:13:42 +01:00

Fix x86 b

(Logical change 1.104)
This commit is contained in:
hp.com!davidm 2003-09-25 05:29:14 +00:00
parent 197801e353
commit d7d831e9bb

View file

@ -77,7 +77,7 @@ do_backtrace (void)
if (unw_get_proc_name (&cursor, name, sizeof (name), &off) == 0)
{
if (off)
snprintf (buf, sizeof (buf), "<%s+0x%lx>", name, off);
snprintf (buf, sizeof (buf), "<%s+0x%lx>", name, (long) off);
else
snprintf (buf, sizeof (buf), "<%s>", name);
}
@ -145,7 +145,7 @@ sighandler (int signal, void *siginfo, void *context)
}
# endif
#elif UNW_TARGET_X86
printf (" @ %lx", sc.eip);
printf (" @ %lx", uc->uc_mcontext.gregs[REG_EIP]);
#endif
printf ("\n");