t.logTrace("beginning wait")
ev.Waitmsg, ev.err = os.Wait(t.tid, syscall.WALL)
if ev.err == nil && ev.Pid != t.tid {
- panic("Wait returned pid ", ev.Pid, " wanted ", t.tid)
+ panic(fmt.Sprint("Wait returned pid ", ev.Pid, " wanted ", t.tid))
}
if ev.StopSignal() == syscall.SIGSTOP && t.ignoreNextSigstop {
// Spurious SIGSTOP. See Thread.Stop().
case 15:
return Word(r.Gs)
}
- panic("invalid register index ", strconv.Itoa(i))
+ panic("invalid register index " + strconv.Itoa(i))
}
func (r *_386Regs) Set(i int, val Word) os.Error {
case 15:
r.Gs = uint16(val)
default:
- panic("invalid register index ", strconv.Itoa(i))
+ panic("invalid register index " + strconv.Itoa(i))
}
return r.setter(&r.PtraceRegs)
}
case 23:
return Word(r.Gs)
}
- panic("invalid register index ", strconv.Itoa(i))
+ panic("invalid register index " + strconv.Itoa(i))
}
func (r *amd64Regs) Set(i int, val Word) os.Error {
case 23:
r.Gs = uint64(val)
default:
- panic("invalid register index ", strconv.Itoa(i))
+ panic("invalid register index " + strconv.Itoa(i))
}
return r.setter(&r.PtraceRegs)
}
)
func abort(funcname string, err int) {
- panic(funcname+" failed: (", err, ") ", syscall.Errstr(err), "\n")
+ panic(funcname + " failed: " + syscall.Errstr(err))
}
func print_version(v uint32) {
func loadDll(fname string) uint32 {
m := loadlibraryex(uintptr(unsafe.Pointer(StringBytePtr(fname))))
if m == 0 {
- panic("syscall: could not LoadLibraryEx ", fname)
+ panic("syscall: could not LoadLibraryEx " + fname)
}
return m
}
func getSysProcAddr(m uint32, pname string) uintptr {
p := getprocaddress(m, uintptr(unsafe.Pointer(StringBytePtr(pname))))
if p == 0 {
- panic("syscall: could not GetProcAddress for ", pname)
+ panic("syscall: could not GetProcAddress for " + pname)
}
return p
}
func main() {
ws, err := websocket.Dial("ws://localhost/ws", "", "http://localhost/");
if err != nil {
- panic("Dial: ", err.String())
+ panic("Dial: " + err.String())
}
if _, err := ws.Write([]byte("hello, world!\n")); err != nil {
- panic("Write: ", err.String())
+ panic("Write: " + err.String())
}
var msg = make([]byte, 512);
if n, err := ws.Read(msg); err != nil {
- panic("Read: ", err.String())
+ panic("Read: " + err.String())
}
// use msg[0:n]
}
http.Handle("/echo", websocket.Handler(EchoServer));
err := http.ListenAndServe(":12345", nil);
if err != nil {
- panic("ListenAndServe: ", err.String())
+ panic("ListenAndServe: " + err.String())
}
}
*/