]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: runtime.Caller should succeed even without debug info.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Sep 2012 17:42:53 +0000 (17:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Sep 2012 17:42:53 +0000 (17:42 +0000)
From-SVN: r191833

libgo/runtime/go-caller.c

index 7d5df852886e1f500bf021b12d7dc5fb6b0969c2..8d8fe4c879762f4b3f814de5452c88190c50081d 100644 (file)
@@ -172,7 +172,8 @@ Caller (int skip)
   if (n < 1)
     return ret;
   ret.pc = pc;
-  ret.ok = __go_file_line (pc, &fn, &ret.file, &ret.line);
+  __go_file_line (pc, &fn, &ret.file, &ret.line);
+  ret.ok = 1;
   return ret;
 }