Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
7c81527e
Commit
7c81527e
authored
Jan 31, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Remove confusion about split stack functions in backtrace.
From-SVN: r195627
parent
dbdbd982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
libgo/runtime/go-callers.c
+10
-2
No files found.
libgo/runtime/go-callers.c
View file @
7c81527e
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
struct
callers_data
struct
callers_data
{
{
Location
*
locbuf
;
Location
*
locbuf
;
int
skip
;
int
index
;
int
index
;
int
max
;
int
max
;
};
};
...
@@ -41,6 +42,12 @@ callback (void *data, uintptr_t pc, const char *filename, int lineno,
...
@@ -41,6 +42,12 @@ callback (void *data, uintptr_t pc, const char *filename, int lineno,
return
0
;
return
0
;
}
}
if
(
arg
->
skip
>
0
)
{
--
arg
->
skip
;
return
0
;
}
loc
=
&
arg
->
locbuf
[
arg
->
index
];
loc
=
&
arg
->
locbuf
[
arg
->
index
];
loc
->
pc
=
pc
;
loc
->
pc
=
pc
;
...
@@ -75,10 +82,11 @@ runtime_callers (int32 skip, Location *locbuf, int32 m)
...
@@ -75,10 +82,11 @@ runtime_callers (int32 skip, Location *locbuf, int32 m)
struct
callers_data
data
;
struct
callers_data
data
;
data
.
locbuf
=
locbuf
;
data
.
locbuf
=
locbuf
;
data
.
skip
=
skip
+
1
;
data
.
index
=
0
;
data
.
index
=
0
;
data
.
max
=
m
;
data
.
max
=
m
;
backtrace_full
(
__go_get_backtrace_state
(),
skip
+
1
,
callback
,
backtrace_full
(
__go_get_backtrace_state
(),
0
,
callback
,
error_
callback
,
error_callback
,
&
data
);
&
data
);
return
data
.
index
;
return
data
.
index
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment