Commit 120218af authored by David du Colombier's avatar David du Colombier

runtime: homogenize panic strings on Plan 9

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/61410046
parent 3d487e84
......@@ -310,6 +310,10 @@ runtime·sigpanic(void)
{
if(g->sigpc == 0)
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);
if(g->sig == 1 || g->sig == 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment