OSDN Git Service

runtime: runtime.Caller should succeed even without debug info.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2012 17:42:53 +0000 (17:42 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2012 17:42:53 +0000 (17:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191833 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/runtime/go-caller.c

index 7d5df85..8d8fe4c 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;
 }