From d7d831e9bbb4e6dc7c84167b7f16105968df8e17 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Thu, 25 Sep 2003 05:29:14 +0000 Subject: [PATCH] Fix x86 b (Logical change 1.104) --- tests/bt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bt.c b/tests/bt.c index cb07eb46..f55e816b 100644 --- a/tests/bt.c +++ b/tests/bt.c @@ -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");