]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix build
authorRuss Cox <rsc@golang.org>
Wed, 12 Jun 2013 13:06:28 +0000 (09:06 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 12 Jun 2013 13:06:28 +0000 (09:06 -0400)
TBR=dvyukov
CC=golang-dev
https://golang.org/cl/10227044

src/pkg/runtime/traceback_x86.c

index b9a6b07383cdf694928f6fa91fe6b71706bad90e..e6e132e253607a7797a5e7cde3e6a8d329534c2f 100644 (file)
@@ -112,7 +112,7 @@ runtime·gentraceback(uintptr pc0, uintptr sp0, uintptr lr0, G *gp, int32 skip,
                }
 
                // Derive location and size of local variables.
-               if(frame.fp == frame.sp) {
+               if(frame.fp == frame.sp + sizeof(uintptr)) {
                        // Function has not created a frame for itself yet.
                        frame.varp = nil;
                        frame.varlen = 0;