diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-30 22:24:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-30 22:24:40 +0000 |
commit | 27741f93ef6db21d70fd0a0fe33a68a82b4e79fd (patch) | |
tree | 1764d8d318ba67622aefbf3e311749a6744bfa02 /libgo/runtime/go-caller.c | |
parent | e60e09a0e0e8c1b17fc35cf25b739666a96010b9 (diff) | |
download | gcc-27741f93ef6db21d70fd0a0fe33a68a82b4e79fd.zip gcc-27741f93ef6db21d70fd0a0fe33a68a82b4e79fd.tar.gz gcc-27741f93ef6db21d70fd0a0fe33a68a82b4e79fd.tar.bz2 |
runtime: In backtraces, get inline functions, skip split-stack fns.
From-SVN: r195591
Diffstat (limited to 'libgo/runtime/go-caller.c')
-rw-r--r-- | libgo/runtime/go-caller.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c index 63b45f3..d84580f 100644 --- a/libgo/runtime/go-caller.c +++ b/libgo/runtime/go-caller.c @@ -166,16 +166,16 @@ struct caller_ret Caller (int skip) { struct caller_ret ret; - uintptr pc; + Location loc; int32 n; - String fn; runtime_memclr (&ret, sizeof ret); - n = runtime_callers (skip + 1, &pc, 1); + n = runtime_callers (skip + 1, &loc, 1); if (n < 1) return ret; - ret.pc = pc; - __go_file_line (pc, &fn, &ret.file, &ret.line); + ret.pc = loc.pc; + ret.file = loc.filename; + ret.line = loc.lineno; ret.ok = 1; return ret; } |