Fix stack address printing in Debug_Stack_Trace.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Tue, 14 Feb 2012 17:34:17 +0000 (10:34 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Tue, 14 Feb 2012 17:34:17 +0000 (10:34 -0700)
src/microcode/debug.c

index c727300149a0ab5e0642df758c55ffb7ffc6b60f..8838cc2c347a26014eb08719f5cc8bf07e3a8088 100644 (file)
@@ -685,8 +685,8 @@ Back_Trace (outf_channel stream)
          break;
        }
 #endif
-      Temp = (STACK_POP ());
       outf (stream, "{%#lx}", ((unsigned long) stack_pointer));
+      Temp = (STACK_POP ());
       if (RETURN_CODE_P (Temp))
        {
          if (print_one_continuation_frame (stream, Temp))