148104Sbostic /*- 2*62131Sbostic * Copyright (c) 1980, 1993 3*62131Sbostic * The Regents of the University of California. All rights reserved. 422575Sdist * 548104Sbostic * %sccs.include.redist.c% 648104Sbostic * 7*62131Sbostic * @(#)runtime.h 8.1 (Berkeley) 06/06/93 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