From: Ian Lance Taylor Date: Fri, 28 Sep 2012 17:42:53 +0000 (+0000) Subject: runtime: runtime.Caller should succeed even without debug info. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92aecb446a29e14e637cbe8d13d95b44610b7ff5;p=gcc.git runtime: runtime.Caller should succeed even without debug info. From-SVN: r191833 --- diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c index 7d5df852886..8d8fe4c8797 100644 --- a/libgo/runtime/go-caller.c +++ b/libgo/runtime/go-caller.c @@ -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; }