1 /*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)machine.h 8.1 (Berkeley) 06/06/93 8 */ 9 10 /* 11 * Definitions for the machine module. 12 * 13 * This module has the low level machine interface. This consists 14 * mostly of dealing with machine instructions and also setting 15 * and unsetting breakpoints. 16 */ 17 18 ADDRESS pc; /* current program counter */ 19 LINENO curline; /* line number associated with pc */ 20 SYM *curfunc; /* pointer to active function symbol */ 21 22 int setbp(); /* set a breakpoint */ 23 int unsetbp(); /* unset a breakpoint */ 24 BOOLEAN isbperr(); /* test if a breakpoint has occurred */ 25 int printerror(); /* print out an execution error message */ 26 ADDRESS nextaddr(); /* address of next line to be executed */ 27 BOOLEAN isendofproc(); /* test if address is at end of procedure */ 28 int printinst(), printninst(); /* print the instruction at a given address */ 29 int printdata(), printndata(); /* print the contents of a given data address */ 30