⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xxgdb.man

📁 如果RH
💻 MAN
字号:
.TH XXGDB 1.10 "November 1994" "X Version 11".SH NAMExxgdb \- X window system interface to the gdb debugger..SH SYNOPSIS.B xxgdb[ \fI-toolkitoption ... \fP] [\fI-xxgdboption ... \fP] [\fI-gdboption ... \fP] [\fIobjfile\fP [ \fIcorefile\fP ]].SH DESCRIPTION\fIXxgdb\fP is a graphical user interface to the \fIgdb\fP debugger under theX Window System.  It provides visual feedback and mouse input for theuser to control program execution through breakpoints, to examine andtraverse the function call stack, to display values ofvariables and data structures, and to browse source files and functions..LP\fIXxgdb\fP allows initial gdb commands stored in the file \fI.gdbinit\fP to be executed immediately after the symbolic information is read.  If \fI.gdbinit\fP does not exist in the current directory, the user's home directory is searched (\fI~/.gdbinit\fP). Option -nxcan be used to prevent xxgdb from executing this file. Option -ican be used to change the file name of command file..LP\fIObjfile\fP is an object file produced by a compiler with theappropriate option (-g) specified to produce symbol tableinformation for gdb..LPIf a file named \fIcore\fP exists in the current directory or a\fIcorefile\fP is specified, \fIxxgdb\fP can be used to examine thestate of the program when the core dump occurred..LPThe name of the debugger invoked by \fIxxgdb\fP is, by default, gdb, butit can be overridden with the environment variable XXGDB_DEBUGGER or withthe db_name option..SH OPTIONS\fIXxgdb\fP accepts all of the standard X Toolkit command line options (see \fIX\fP(1)), and all the gdb options (see \fIgdb\fP(1)), plusthe following xxgdb specific options:.IP -db_name debuggernameSpecify the name of the debugger to override the default "gdb".WARNING : by default prompt is the name of the debugger enclosed inparenthesis followed by a space. So if the prompt is still "(gdb) ",you HAVE TO use -db_prompt "gdb".IP -db_prompt promptstringSpecify to xxgdb what is the debugger prompt. The default is toexpect the prompt to be the name of the debugger enclosed inparenthesis followed by a space (eg, "(gdb) ")..IP -i filenameSpecify the filename of initial gdb command file. The defaultis ".gdbinit"..IP -nxDo not execute .gdbinit file (or file specified with -i).IP -bigiconUses a 64x64 icon instead of the default 48x48 icon..SH SUBWINDOWS\fIXxgdb\fP consists of the following subwindows:.IP "File Window" 20Display the full pathname of the file displayed in the source window,and the line number of the caret..IP "Source Window" 20Display the contents of a source file..IP "Message Window" 20Display the execution status and error messages of \fIxxgdb\fP ..IP "Command Window" 20Provide a list of the common gdb commands which are invoked by simplyclicking the LEFT mouse button..IP "Dialogue Window" 20Provide a typing interface to gdb..IP "Display Window" 20Provide a window for displaying variables each time execution stops..IP "Popup Windows" 20Provide windows for displaying variables (see "Displaying C DataStructures" below)..LPThe relative sizes of the source window, command window, and the dialoguewindow can be adjusted by dragging the grip (a small square near theright edge of a horizontal border) with the LEFT mouse button down..SH SELECTIONText selection in the source window is modified to make it easier toselect C expressions.  LEFT mouse button down selects a C expression byhighlighting it in reverse-video.  LEFT mouse button down also positions thecaret and updates the line label accordingly..LPC expression selection is based on the resource \fIdelimiters\fP whichdetermines the set of characters that delimits a C expression.  (Thedefault word selection behavior in the Athena text widget selects aword delimited by white spaces.)  Text selection adjustment is possibleby holding the LEFT mouse button down and dragging..LPA LEFT mouse button click with the SHIFT button down prints the valueof the expression selected..LP.SH SCROLLBARPressing the LEFT mouse button scrolls the text forward, whereaspressing the RIGHT mouse button scrolls the text backward.  The amountof scrolling depends on the distance of the pointer button away fromthe top of the scrollbar.  If the button is pressed at the top of thescrollbar, only one line of text is scrolled.  If the button is pressedat the bottom of the scrollbar, one screenful of text is scrolled..LPPressing the MIDDLE mouse button changes the thumb position of thescrollbar.  Dragging the MIDDLE mouse button down moves the thumb alongand changes the text displayed..SH IOWIN COMMANDIf compiled, with the right option, xxgdb can use a separate io windowto talk to gdb, so program output is not confused with gdb output.Type command 'iowin' in Dialogue Window to create io window. If youget 'Undefined command' error message, then xxgdb was not compiled forthat feature. The program xxgdbiowin is used for this io window..SH COMMAND BUTTONS.SS "Execution Commands".IP "\fBrun\fP" 12Begin program execution..IP "\fBcont\fP"Continue execution from where it stopped..IP "\fBnext\fP"Execute one source line, without stepping into any function call..IP "\fBstep\fP"Execute one source line, stepping into a function if the source linecontains a function call..IP "\fBfinish\fP"Continue execution until the selected procedurereturns; the current procedure is used if none is selected..LP.SS "Breakpoint Commands".IP "\fBbreak\fP" 10Stop program execution at the line or in the function selected.  Toset a breakpoint in the program, place the caret at the start of the source line or on thefunction name and clickthe \fBbreak\fP button.  A stop sign will appear next to the source line..IP "\fBtbreak\fP" 10Set a breakpoint enabled only for one stop.  This is the same as the\fBbreak\fP button except the breakpoint is automatically disabled thefirst time it hit..IP "\fBdelete\fP"Remove the breakpoint on the source line selected or the breakpointnumber selected..IP "\fBshow brkpts\fP"Show the current breakpoints (both active and inactive)..LP.SS "Stack Commands".IP "\fBstack\fP" 10Show a stack trace of the functions called..IP "\fBup\fP"Move up one level on the call stack..IP "\fBdown\fP"Move down one level on the call stack..LP.SS "Data Display Commands".IP "\fBprint\fP" 10Print the value of a selected expression. (also see "Displaying C DataStructures" below).IP "\fBprint *\fP"Print the value of the object the selected expression is pointing to.(also see "Displaying C Data Structures" below).IP "\fBdisplay\fP"Display the value of a selected expression in the display window,updating its value every time execution stops..IP "\fBundisplay\fP"Stop displaying the value of the selected expression in the displaywindow.  If the selected expression is a constant, it refers to thedisplay number associated with an expression in the display window..IP "\fBargs\fP"Print the arguments of the selected frame..IP "\fBshow display\fP"Show the names of currently displayed expressions.	.IP "\fBlocals\fP"Print the local variables of the selected frame..IP "\fBstack\fP"Print a backtrace of the entire stack..LP.SS "Miscellaneous Commands".IP "\fBsearch\fP"Pop up a search panel which allows both forward (>>) and reverse (<<)search of text strings in the source file.  Hitting carriage returnafter entering the search string will begin a forward search and popdown the search panel..IP "\fBfile\fP"Pop up a directory browser that allows the user to move up and downin the directory tree, to select a text file to be displayed, toselect an executable file to debug, or to select a core file to debug.Directory entries are marked with a trailing slash (`/') and executableswith a trailing asterisk (`*').  Filenames beginning with a dot (`.')or ending with a tilde (`~') are not listed in the menu..IP "\fBsearch\fP"Pop up a search panel which allows both forward (>>) and reverse (<<)search of text strings in the source file.  Hitting carriage returnafter entering the search string will begin a forward search and popdown the search panel..IP "\fByes\fP"Send 'y' (yes) to gdb. To be used when gdb requires a yes/no response..IP "\fBno\fP"Send 'n' (no) to gdb. To be used when gdb requires a yes/no response..IP "\fBquit\fP"Exit \fIxxgdb\fP..LP.SS "Displaying C Data Structures\fIXxgdb\fP provides some primitive support for graphically displaying Cstructures and the ability of following pointers.  Pressing the RIGHTmouse button on the \fBprint\fP (or \fBprint *\fP) command buttondisplays the value of the selected expression (or the value theselected expression is pointing to) in a popup.  If the value is apointer or a structure containing pointers, the user can examine thevalue of the object that pointer is pointing to by clicking the pointervalue.  This will create another popup that displays the object thepointer points to.  Clicking the label of the popup pops down itselfand all of its descendants..SH X DEFAULTSTo change the default values of widget resources used in \fIxxgdb\fP,you need to reference the widgets by name or by class.  The widgethierarchies for the main window, the file menu, the search dialog box,and the popup data display used in xxgdb are shown as follows, with thename of the widget followed by the name of its class in parentheses:.nfMain 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).LP.fiIn addition to the standard X resources, \fIxxgdb\fP uses the followingapplication-specific resources for user customization.  The value inparentheses is the default value..IP \fBbell\fPIf True, the bell is on. (True).IP \fBdisplayWindow\fPIf True, the display window appears on start up. (False).IP \fBdelimiters\fPThe set of delimiters for word selection. (" !%^&*()+=~|;:{},/#<?\"\n\t").IP \fBstop_color\fPColor of the stop sign. (Red).IP \fBarrow_color\fPColor of the arrow sign. (Blue).IP \fBupdown_color\fPColor of the updown sign. (Blue).IP \fBbomb_color\fPColor of the bomb sign. (Red).IP \fBdataDpyMaxHeight\fPMaximum height of the data display window. (300).IP \fBdataDpyMaxWidth\fPMaximum width of the data display window. (600).IP \fBprompt\fPThe prompt string used in xxgdb. ("(xxgdb) ").IP \fBdb_name\fPThe name of the debugger program. ("gdb").IP \fBdb_prompt\fPThe prompt string of the debugger program. ("(gdb) ").IP \fBgdbinit\fPThe filename of initial command file. (".gdbinit").IP \fBnx\fPIf True, xxgdb will not execute .gdbinit at start-up. (False).IP \fBtabstop\fPWhen displaying source code, the width (in spaces) of a tab. (8).LP.SH FILES.nfa.out 		default object filecore 		default core file~/XDbx		resources file (or /usr/lib/X11/app-defaults/XDbx)\&.gdbinit 		local initial commands file~/.gdbinit 	user's initial commands file.SH SEE ALSOX(1), gdb(1).SH COPYRIGHTCopyright 1989 The University of Texas at Austin.Copyright 1990 Microelectronics and Computer Technology Corporation.Copyright 1990-1994 Thomson Consumer Electronics, Inc..SH AUTHORPo Cheung.Pierre Willard.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -