Commit 92aecb44 by Ian Lance Taylor

runtime: runtime.Caller should succeed even without debug info.

From-SVN: r191833
parent a139548e
...@@ -172,7 +172,8 @@ Caller (int skip) ...@@ -172,7 +172,8 @@ Caller (int skip)
if (n < 1) if (n < 1)
return ret; return ret;
ret.pc = pc; 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; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment