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
120218af
Commit
120218af
authored
Feb 11, 2014
by
David du Colombier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: homogenize panic strings on Plan 9
LGTM=rsc R=rsc CC=golang-codereviews
https://golang.org/cl/61410046
parent
3d487e84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
os_plan9.c
src/pkg/runtime/os_plan9.c
+4
-0
No files found.
src/pkg/runtime/os_plan9.c
View file @
120218af
...
@@ -310,6 +310,10 @@ runtime·sigpanic(void)
...
@@ -310,6 +310,10 @@ runtime·sigpanic(void)
{
{
if
(
g
->
sigpc
==
0
)
if
(
g
->
sigpc
==
0
)
runtime
·
panicstring
(
"call of nil func value"
);
runtime
·
panicstring
(
"call of nil func value"
);
if
(
runtime
·
strcmp
((
byte
*
)
m
->
notesig
,
(
byte
*
)
"sys: trap: fault read addr"
)
>=
0
||
runtime
·
strcmp
((
byte
*
)
m
->
notesig
,
(
byte
*
)
"sys: trap: fault write addr"
)
>=
0
)
runtime
·
panicstring
(
"invalid memory address or nil pointer dereference"
);
if
(
runtime
·
strcmp
((
byte
*
)
m
->
notesig
,
(
byte
*
)
"sys: trap: divide error"
)
>=
0
)
runtime
·
panicstring
(
"integer divide by zero"
);
runtime
·
panicstring
(
m
->
notesig
);
runtime
·
panicstring
(
m
->
notesig
);
if
(
g
->
sig
==
1
||
g
->
sig
==
2
)
if
(
g
->
sig
==
1
||
g
->
sig
==
2
)
...
...
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