1
0
Fork 0
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:
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 (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");