1*48104Sbostic /*- 2*48104Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48104Sbostic * All rights reserved. 422575Sdist * 5*48104Sbostic * %sccs.include.redist.c% 6*48104Sbostic * 7*48104Sbostic * @(#)runtime.h 5.3 (Berkeley) 04/16/91 822575Sdist */ 95456Slinton 105456Slinton /* 115456Slinton * Definitions for the runtime environment. 125456Slinton * 135456Slinton * In general, runtime organization is language, machine, and 145456Slinton * even compiler dependent. 155456Slinton */ 165456Slinton 175456Slinton BOOLEAN isactive(); /* tell if a symbol is currently active */ 185456Slinton ADDRESS entry_addr(); /* entry address of current proc/func */ 195456Slinton ADDRESS entry_point(); /* point where environment is setup */ 205456Slinton ADDRESS return_addr(); /* return address of current proc/func */ 215456Slinton ADDRESS caller_addr(); /* entry of caller of current proc/func */ 2233243Sbostic int where(); /* print out currently active procedures */ 2333243Sbostic int dump(); /* dump the world */ 2433243Sbostic int callproc(); /* call a procedure */ 2533243Sbostic int procreturn(); /* return from a "call"-ed procedure */ 265456Slinton ADDRESS address(); /* address of a variable */ 275456Slinton ADDRESS firstline(); /* address of first line in a procedure */ 2833243Sbostic int findbeginning(); /* find address of beginning of a procedure */ 2933243Sbostic int runtofirst(); /* step to first line in current procedure */ 305456Slinton ADDRESS lastaddr(); /* address of last line in program */ 315456Slinton ADDRESS fparamaddr(); /* entry address of a function parameter */ 32