xref: /original-bsd/old/sdb/message.c (revision c55b7a8d)
1*c55b7a8dSrrh static	char sccsid[] = "@(#)message.c 4.2 08/17/82";
265b64f22Sbill #
365b64f22Sbill /*
465b64f22Sbill  *
565b64f22Sbill  *	UNIX debugger
665b64f22Sbill  *
765b64f22Sbill  */
865b64f22Sbill 
965b64f22Sbill 
1065b64f22Sbill 
1165b64f22Sbill #include	"mac.h"
1265b64f22Sbill #include	"mode.h"
1365b64f22Sbill 
1465b64f22Sbill 
1565b64f22Sbill MSG		BADMOD	=  "bad modifier";
1665b64f22Sbill MSG		NOBKPT	=  "no breakpoint set";
1765b64f22Sbill MSG		NOPCS	=  "no process";
1865b64f22Sbill MSG		BADTXT	=  "text address not found";
1965b64f22Sbill MSG		BADDAT	=  "data address not found";
2065b64f22Sbill MSG		EXBKPT	=  "too many breakpoints";
2165b64f22Sbill MSG		BADWAIT	=  "wait error: process disappeared!";
2265b64f22Sbill MSG		ENDPCS	=  "process terminated";
2365b64f22Sbill MSG		NOFORK	=  "try again";
2465b64f22Sbill MSG		SZBKPT	=  "bkpt: command too long";
2565b64f22Sbill MSG		BADMAG	=  "bad core magic number";
2665b64f22Sbill 
2765b64f22Sbill STRING		signals[] = {
2865b64f22Sbill 	"",
2965b64f22Sbill 	"hangup",
3065b64f22Sbill 	"interrupt",
3165b64f22Sbill 	"quit",
3265b64f22Sbill 	"illegal instruction",
3365b64f22Sbill 	"trace/BPT",
3465b64f22Sbill 	"IOT",
3565b64f22Sbill 	"EMT",
3665b64f22Sbill 	"floating exception",
3765b64f22Sbill 	"killed",
3865b64f22Sbill 	"bus error",
3965b64f22Sbill 	"memory fault",
4065b64f22Sbill 	"bad system call",
4165b64f22Sbill 	"broken pipe",
4265b64f22Sbill 	"alarm call",
4365b64f22Sbill 	"terminated",
4465b64f22Sbill 	"signal 16",
4565b64f22Sbill 	"stop (signal)",
4665b64f22Sbill 	"stop (tty)",
4765b64f22Sbill 	"continue (signal)",
4865b64f22Sbill 	"child termination",
4965b64f22Sbill 	"stop (tty input)",
5065b64f22Sbill 	"stop (tty output)",
5165b64f22Sbill 	"input available (signal)",
5265b64f22Sbill 	"cpu timelimit",
5365b64f22Sbill 	"file sizelimit",
5465b64f22Sbill 	"signal 26",
5565b64f22Sbill 	"signal 27",
5665b64f22Sbill 	"signal 28",
5765b64f22Sbill 	"signal 29",
5865b64f22Sbill 	"signal 30",
5965b64f22Sbill 	"signal 31",
6065b64f22Sbill };
6165b64f22Sbill int	nsig = sizeof (signals)/sizeof (signals[0]);
62