summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-traceback.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-11-01 03:02:13 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-01 03:02:13 +0000
commit776f27a67f26c795ba8c27a4e69525382b9379c3 (patch)
tree0285cca6b375a23d93c20efec03cb9adec30f0e0 /libgo/runtime/go-traceback.c
parent79e0221796bf5897204e8077afc20e34f88dab3b (diff)
downloadgcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.gz
compiler, runtime: More steps toward separating int and intgo.
From-SVN: r193059
Diffstat (limited to 'libgo/runtime/go-traceback.c')
-rw-r--r--libgo/runtime/go-traceback.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libgo/runtime/go-traceback.c b/libgo/runtime/go-traceback.c
index c1571a37864..4d5b61a4fd5 100644
--- a/libgo/runtime/go-traceback.c
+++ b/libgo/runtime/go-traceback.c
@@ -7,7 +7,6 @@
#include "config.h"
#include "runtime.h"
-#include "go-string.h"
/* Print a stack trace for the current goroutine. */
@@ -28,12 +27,12 @@ runtime_printtrace (uintptr *pcbuf, int32 c)
for (i = 0; i < c; ++i)
{
- struct __go_string fn;
- struct __go_string file;
+ String fn;
+ String file;
int line;
if (__go_file_line (pcbuf[i], &fn, &file, &line)
- && runtime_showframe (fn.__data))
+ && runtime_showframe (fn.str))
{
runtime_printf ("%S\n", fn);
runtime_printf ("\t%S:%d\n", file, line);