Unfix "fix" to stack address printing in Debug_Stack_Trace.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Sun, 26 Feb 2012 16:46:56 +0000 (09:46 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Sun, 26 Feb 2012 16:46:56 +0000 (09:46 -0700)
Silly me; STACK_LOC(0) is *not* a valid object.  I don't know what gdb
was trying to tell me... but 20 year old code doesn't lie.

src/microcode/debug.c

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