|
NAMExxgdb - X window system interface to the gdb debugger.SYNOPSISxxgdb [ -toolkitoption ... ] [-xxgdboption ... ] [-gdboption ... ] [objfile [ corefile ]]DESCRIPTIONXxgdb is a graphical user interface to the gdb debugger under the X Window System. It provides visual feedback and mouse input for the user to control program execution through breakpoints, to examine and traverse the function call stack, to display values of variables and data structures, and to browse source files and functions.Xxgdb allows initial gdb commands stored in the file .gdbinit to be executed immediately after the symbolic information is read. If .gdbinit does not exist in the current directory, the user's home directory is searched (~/.gdbinit). Option -nx can be used to prevent xxgdb from executing this file. Option -i can be used to change the file name of command file. Objfile is an object file produced by a compiler with the appropriate option (-g) specified to produce symbol table information for gdb. If a file named core exists in the current directory or a corefile is specified, xxgdb can be used to examine the state of the program when the core dump occurred. The name of the debugger invoked by xxgdb is, by default, gdb, but it can be overridden with the environment variable XXGDB_DEBUGGER or with the db_name option. Additionally, the prompt string can be overridden with the environment variable XXGDB_DBXPROMPT or with the db_prompt option. OPTIONSXxgdb accepts all of the standard X Toolkit command line options (see X(1)), and all the gdb options (see gdb(1)), plus the following xxgdb specific options:
SUBWINDOWSXxgdb consists of the following subwindows:
The relative sizes of the source window, command window, and the dialogue window can be adjusted by dragging the grip (a small square near the right edge of a horizontal border) with the LEFT mouse button down. SELECTIONText selection in the source window is modified to make it easier to select C expressions. LEFT mouse button down selects a C expression by highlighting it in reverse-video. LEFT mouse button down also positions the caret and updates the line label accordingly.C expression selection is based on the resource delimiters which determines the set of characters that delimits a C expression. (The default word selection behavior in the Athena text widget selects a word delimited by white spaces.) Text selection adjustment is possible by holding the LEFT mouse button down and dragging. A LEFT mouse button click with the SHIFT button down prints the value of the expression selected. SCROLLBARPressing the LEFT mouse button scrolls the text forward, whereas pressing the RIGHT mouse button scrolls the text backward. The amount of scrolling depends on the distance of the pointer button away from the top of the scrollbar. If the button is pressed at the top of the scrollbar, only one line of text is scrolled. If the button is pressed at the bottom of the scrollbar, one screenful of text is scrolled.Pressing the MIDDLE mouse button changes the thumb position of the scrollbar. Dragging the MIDDLE mouse button down moves the thumb along and changes the text displayed. IOWIN COMMANDIf compiled, with the right option, xxgdb can use a separate io window to talk to gdb, so program output is not confused with gdb output. Type command 'iowin' in Dialogue Window to create io window. If you get 'Undefined command' error message, then xxgdb was not compiled for that feature. The program xxgdbiowin is used for this io window.COMMAND BUTTONSExecution Commands
Breakpoint Commands
Stack Commands
Data Display Commands
Miscellaneous Commands
Displaying C Data StructuresXxgdb provides some primitive support for graphically displaying C structures and the ability of following pointers. Pressing the RIGHT mouse button on the print (or print *) command button displays the value of the selected expression (or the value the selected expression is pointing to) in a popup. If the value is a pointer or a structure containing pointers, the user can examine the value of the object that pointer is pointing to by clicking the pointer value. This will create another popup that displays the object the pointer points to. Clicking the label of the popup pops down itself and all of its descendants.X DEFAULTSTo change the default values of widget resources used in xxgdb, you need to reference the widgets by name or by class. The widget hierarchies for the main window, the file menu, the search dialog box, and the popup data display used in xxgdb are shown as follows, with the name of the widget followed by the name of its class in parentheses:Main window: toplevel (ToplevelShell) vpane (Paned) fileWindow (Form) fileLabel (Label) lineLabel (Label) sourceForm (Form) sourceWindow (AsciiText) messageWindow (Label) commandWindow (Box) run (Command) cont (Command) next (Command) step (Command) finish (Command) break (Command) tbreak (Command) delete (Command) up (Command) down (Command) print (Command) print * (Command) display (Command) undisplay (Command) args (Command) locals (Command) stack (Command) search (Command) file (Command) show display (Command) show brkpts (Command) yes (Command) no (Command) quit (Command) dialogWindow (AsciiText) displayWindow (AsciiText) File menu: File Directory (TransientShell) popup (Paned) fileMenuLabel (Label) fileMenu (List) cancelButton (Command) Search dialog box: Search (TransientShell) searchPopup (Dialog) << (Command) >> (Command) DONE (Command) Data display popup: Data Popup (TransientShell) popup (Form) label (Label) dataDpyWindow (AsciiText) In addition to the standard X resources, xxgdb uses the following application-specific resources for user customization. The value in parentheses is the default value.
FILESa.out default object file core default core file ~/XDbx resources file (or /usr/lib/X11/app-defaults/XDbx) .gdbinit local initial commands file ~/.gdbinit user's initial commands file SEE ALSOX(1), gdb(1)COPYRIGHTCopyright 1989 The University of Texas at Austin. Copyright 1990 Microelectronics and Computer Technology Corporation. Copyright 1990-1994 Thomson Consumer Electronics, Inc.AUTHORPo Cheung. Pierre Willard.
Visit the GSP FreeBSD Man Page Interface. |