Invoking dbXtra and dbxtra from the command line
The syntax for dbXtra and dbxtra is:
dbXtra [X11-options] [options] [objfile [corefile | processid]]
dbxtra [options] [objfile [corefile]]
The first form of the command is used within the X Window System Version 11 (X11). It invokes dbXtra(CP), the Motif version of the debugger, which uses various X11 and Motif objects. All X11-options are passed on to X11. See X(X).
You may need to set the environment variable DISPLAY in order to run dbXtra. This variable informs your system of the address of the X Window display you are using. See X(X).
The second form of the command invokes dbxtra(CP), the curses version of the debugger. That version is suitable for use with most common alphanumeric terminals as well as from within a terminal emulator window application (such as xterm) within X windows.
The object file specified by objfile contains the executable instructions of the program to be debugged. If objfile is not specified, you are prompted for the name of the file. If this object file was compiled with the -g flag, also included in the file are the symbol table information needed to identify the variables by their source names, and the line numbers and filenames of the source code for each executable source line. A warning is issued if the object file does not have this extra information.
The core file specified by corefile determines the state of the program when it faulted. If it is not specified, then the file named core in the current directory is used if it exists. If the core file does not coincide with the program being debugged, for example, if it was created when another program had faulted, it is ignored.
If the file .dbxtrarc exists in the current directory, then the debugger commands in it are executed. The debugger also checks for a .dbxtrarc in the user's home directory if there is not one in the current directory.
One or more of the following options may be specified in any order:
For further information about debugging C++ programs, see ``C++ specific debugging features''.
The use of this option results in faster load time and requires significantly less memory for larger programs.
When -r is specified and standard input is not a terminal, the debugger reads from /dev/tty.