2010-01-20 23:42:07 -05:00
|
|
|
! Copyright (C) 2009 Slava Pestov.
|
2008-12-08 17:02:31 -05:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2013-10-17 11:05:26 -04:00
|
|
|
USING: accessors debugger io kernel libc prettyprint unix ;
|
2008-12-08 17:02:31 -05:00
|
|
|
IN: unix.debugger
|
|
|
|
|
2013-10-17 11:05:26 -04:00
|
|
|
M: libc-error error.
|
2008-12-08 17:02:31 -05:00
|
|
|
"Unix system call failed:" print
|
|
|
|
nl
|
|
|
|
dup message>> write " (" write errno>> pprint ")" print ;
|
|
|
|
|
|
|
|
M: unix-system-call-error error.
|
2009-01-27 00:22:50 -05:00
|
|
|
"Unix system call “" write dup word>> pprint "” failed:" print
|
2008-12-08 17:02:31 -05:00
|
|
|
nl
|
|
|
|
dup message>> write " (" write dup errno>> pprint ")" print
|
|
|
|
nl
|
|
|
|
"It was called with the following arguments:" print
|
|
|
|
nl
|
|
|
|
args>> stack. ;
|