projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a139548
)
runtime: runtime.Caller should succeed even without debug info.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 28 Sep 2012 17:42:53 +0000
(17:42 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 28 Sep 2012 17:42:53 +0000
(17:42 +0000)
From-SVN: r191833
libgo/runtime/go-caller.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-caller.c
b/libgo/runtime/go-caller.c
index 7d5df852886e1f500bf021b12d7dc5fb6b0969c2..8d8fe4c879762f4b3f814de5452c88190c50081d 100644
(file)
--- 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;
}