Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dbxtool(1) — SunOS 4.1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1V)

dbx(1)

DBXTOOL(1)  —  {:heading=>"DBXTOOL\|(\|1\|)\0\0\(em\0\0\∗(]D"}

NAME

dbxtool − OpenWindows interface for the dbx source-level debugger

SYNOPSIS

dbxtool [ −kbd ] [ −I directory ] [ objectfile [ corefile | processID ] ]

DESCRIPTION

dbxtool, a source-level debugger for C, Pascal, FORTRAN, and Modula-2 programs, is a standard tool that runs within the OpenWindows environment.  It accepts the same commands as dbx, but provides a more convenient user interface. 

You can use the mouse to set breakpoints, examine the values of variables, control execution, peruse source files, and so on.  dbxtool has separate subwindows for viewing source code, entering commands and other uses. 

objectfile is an object file produced by cc(1V), or any other Sun compiler (or a combination of them) with the −g flag specified to produce symbol information in the object file.  IMPORTANT: every stage of the compilation process, including the linking phase, must include the −g option.  If no objectfile is specified, you can use the debug command to specify the program to be debugged.  The object file contains a symbol table which includes the names of all the source files translated by the compiler to create it.  These files are available for perusal while using the debugger. 

If a file named core exists in the current directory or a corefile is specified, dbxtool can be used to examine the state of the program when it faulted. 

Giving a processID instead of a corefile halts that process and begins debugging it. Detaching the debugger from the process allows that process to continue to execute.

Debugger commands in the file .dbxinit are executed immediately after the symbolic information is read, if that file exists in the current directory, or in the user’s home directory if .dbxinit does not exist in the current directory. 

OPTIONS

−kbd Debugs a program that sets the keyboard into up/down translation mode.  This flag is necessary if you are debugging a program that uses up/down encoding. 

−I directory
Add directory to the list of directories that are searched when looking for a source file. Normally dbxtool looks for source files in the current directory and then in the directory where objectfile is located. The directory search path can also be set with the use command.  Multiple −I options may be given. 

USAGE

Refer to dbx(1) for a summary of dbx commands, or dbxtool for OpenWindows for more complete information on using dbxtool. 

FILES

core default core file

.dbxinit local dbx initialization file

/.dbxinit user’s dbx initialization file

SEE ALSO

cc(1V), dbx(1)

Debugging Tools

dbxtool for OpenWindows

OpenWindows Version 2  —  Last change: 11 June 1990  —  Last change: 11 June 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026