DBG(1) — Silicon Graphics
NAME
dbg − debug a FORTRAN or Pascal program
SYNOPSIS
dbg progname
DESCRIPTION
Dbg can be used to debug a FORTRAN or Pascal program, or a program which is a mixture of FORTRAN and Pascal. It allows the setting of breakpoints, the examination and setting of variables, and dumps of the program’s call chain. Dbg is not a true source debugger, as one cannot examine source while in the debugger. It is, however, source oriented as all commands are with respect to source line numbers. The line numbers referred to when using dbg can be obtained by generating a source listing during compilation.
In order to run dbg on a program, the entire program must be compiled and linked with the -g switch. This will generate a debugger information file in the same directory as the final executable. If the executable is not debugged in this directory, special options must be given to dbg. Complete documentation on dbg, including command syntax, is found in Vol IIB of the UNIX Programmer’s Manual.
SEE ALSO
FORTRAN Debugger Reference Manual in the UNIX Programmer’s Manual, Volume IIB.
Version 2.3 — July 04, 1985