Commit | Line | Data |
---|---|---|
505bf312 KB |
1 | /*- |
2 | * Copyright (c) 1980 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
3cd5310a | 6 | * |
505bf312 | 7 | * @(#)machine.h 5.4 (Berkeley) %G% |
3cd5310a | 8 | */ |
2eef2279 ML |
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 */ | |
2eef2279 | 21 | |
7d4de299 KB |
22 | int setbp(); /* set a breakpoint */ |
23 | int unsetbp(); /* unset a breakpoint */ | |
2eef2279 | 24 | BOOLEAN isbperr(); /* test if a breakpoint has occurred */ |
7d4de299 | 25 | int printerror(); /* print out an execution error message */ |
2eef2279 | 26 | ADDRESS nextaddr(); /* address of next line to be executed */ |
514bd573 | 27 | BOOLEAN isendofproc(); /* test if address is at end of procedure */ |
7d4de299 KB |
28 | int printinst(), printninst(); /* print the instruction at a given address */ |
29 | int printdata(), printndata(); /* print the contents of a given data address */ |