diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-09-28 17:42:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-09-28 17:42:53 +0000 |
commit | 92aecb446a29e14e637cbe8d13d95b44610b7ff5 (patch) | |
tree | 9afa0ef3dad2b0b5c5c4d195205004764f5fc185 /libgo | |
parent | a139548ea7f09d566e01220812350395693ea286 (diff) | |
download | gcc-92aecb446a29e14e637cbe8d13d95b44610b7ff5.zip gcc-92aecb446a29e14e637cbe8d13d95b44610b7ff5.tar.gz gcc-92aecb446a29e14e637cbe8d13d95b44610b7ff5.tar.bz2 |
runtime: runtime.Caller should succeed even without debug info.
From-SVN: r191833
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/go-caller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c index 7d5df85..8d8fe4c 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; } |