From 92aecb446a29e14e637cbe8d13d95b44610b7ff5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Sep 2012 17:42:53 +0000 Subject: [PATCH] runtime: runtime.Caller should succeed even without debug info. From-SVN: r191833 --- libgo/runtime/go-caller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }