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
ec1948a4
Commit
ec1948a4
authored
Jan 29, 2013
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: clear up lr comments
R=cshapiro CC=golang-dev
https://golang.org/cl/7230052
parent
e1448c07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
traceback_arm.c
src/pkg/runtime/traceback_arm.c
+1
-1
traceback_x86.c
src/pkg/runtime/traceback_x86.c
+1
-8
No files found.
src/pkg/runtime/traceback_arm.c
View file @
ec1948a4
...
...
@@ -32,7 +32,7 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *gp, int32 skip, uintptr
waspanic
=
false
;
// If the PC is goexit, the goroutine hasn't started yet.
if
(
pc
==
(
uintptr
)
runtime
·
goexit
)
{
if
(
pc
==
(
uintptr
)
runtime
·
goexit
&&
gp
->
entry
!=
0
)
{
pc
=
(
uintptr
)
gp
->
entry
;
lr
=
(
uintptr
)
runtime
·
goexit
;
}
...
...
src/pkg/runtime/traceback_x86.c
View file @
ec1948a4
...
...
@@ -40,19 +40,12 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *gp, int32 skip, uintptr
waspanic
=
false
;
// If the PC is goexit, the goroutine hasn't started yet.
if
(
pc0
==
gp
->
sched
.
pc
&&
sp
==
(
byte
*
)
gp
->
sched
.
sp
&&
pc0
==
(
byte
*
)
runtime
·
goexit
)
{
if
(
pc0
==
gp
->
sched
.
pc
&&
sp
==
(
byte
*
)
gp
->
sched
.
sp
&&
pc0
==
(
byte
*
)
runtime
·
goexit
&&
gp
->
entry
!=
0
)
{
fp
=
sp
;
lr
=
pc
;
pc
=
(
uintptr
)
gp
->
entry
;
}
// If the PC is zero, it's likely a nil function call.
// Start in the caller's frame.
if
(
pc
==
0
)
{
pc
=
lr
;
lr
=
0
;
}
// If the PC is zero, it's likely a nil function call.
// Start in the caller's frame.
if
(
pc
==
0
)
{
...
...
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