Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
44f65c8f
Commit
44f65c8f
authored
Jul 12, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix traceback to know about new segmenting
SVN=126930
parent
751ce3a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
rt2_amd64.c
src/runtime/rt2_amd64.c
+2
-4
No files found.
src/runtime/rt2_amd64.c
View file @
44f65c8f
...
...
@@ -8,8 +8,7 @@ extern int32 debug;
static
int8
spmark
[]
=
"
\xa7\xf1\xd9\x2a\x82\xc8\xd8\xfe
"
;
extern
void
_morestack
();
extern
void
_endmorestack
();
extern
void
morestack2
();
void
traceback
(
uint8
*
pc
,
uint8
*
sp
,
void
*
r15
)
...
...
@@ -30,7 +29,7 @@ traceback(uint8 *pc, uint8 *sp, void* r15)
name
=
"panic"
;
for
(;;){
callpc
=
pc
;
if
((
uint8
*
)
_morestack
<
pc
&&
pc
<
(
uint8
*
)
_endmorestack
)
{
if
((
uint8
*
)
morestack2
==
pc
)
{
// call site in _morestack(); pop to earlier stack block to get true caller
stktop
=
(
Stktop
*
)
g
.
stackbase
;
g
.
stackbase
=
stktop
->
oldbase
;
...
...
@@ -83,6 +82,5 @@ traceback(uint8 *pc, uint8 *sp, void* r15)
sys
·
printpointer
(((
void
**
)
sp
)[
i
]);
}
prints
(
", ...)
\n
"
);
/* print pc for next frame */
}
}
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