Annotation of researchv10no/cmd/adb/cray/mchpr.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * print machine-dependent numbers: signals, pc
                      3:  */
                      4: 
                      5: #include "defs.h"
                      6: #include "regs.h"
                      7: #include "space.h"
                      8: #include <signal.h>
                      9: 
                     10: static char *signals[] = {
                     11:        "",
                     12:        "hangup",
                     13:        "interrupt",
                     14:        "quit",
                     15:        "illegal instruction",
                     16:        "trace/BPT",
                     17:        "IOT",
                     18:        "EMT",
                     19:        "floating exception",
                     20:        "killed",
                     21:        "bus error",
                     22:        "memory fault",
                     23:        "bad system call",
                     24:        "broken pipe",
                     25:        "alarm call",
                     26:        "terminated",
                     27:        "signal 16",
                     28:        "signal 17",
                     29:        "child termination",
                     30:        "power fail",
                     31:        "memory error",
                     32:        "deadlock",
                     33: };
                     34: 
                     35: sigprint()
                     36: {
                     37:        if ((signo>=0) && (signo<sizeof signals/sizeof signals[0]))
                     38:                prints(signals[signo]);
                     39: }
                     40: 
                     41: printpc()
                     42: {
                     43: 
                     44:        dot = (ADDR)rtow(rget(PC));
                     45:        psymoff((WORD)dot, INSTSP, "/%16t");
                     46:        printins(CORF|INSTSP);
                     47:        printc(EOR);
                     48: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.