aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-caller.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-caller.c')
-rw-r--r--libgo/runtime/go-caller.c10
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;
}