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

From-SVN: r191833
This commit is contained in:
Ian Lance Taylor 2012-09-28 17:42:53 +00:00
parent a139548ea7
commit 92aecb446a

View 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;
}