=====help most_used==== quit[!] - quit dbx run arg1 arg2 ... < f1 >& f2 - begin execution of the program stop at - suspend execution at the line [n] cont - continue with signal return - continue until the current procedure returns print ... - print the value of the expressions printf "string", exp, ... - print expressions using format string(C) where [n] - print currently active procedures (stack trace) status - print trace/stop/record's in effect func - move to activation level of [/ | ?] - display count number of formatted memory items file - change current file to file list , - list source lines from to list : - list source lines at for lines sh - perform shell command ====help quit==== quit[!] - quit dbx ====help alias==== alias - print aliases alias name "string" - set name to alias "string" alias name(arg1, ...) "string" - set name to alias "string" unalias - unset alias for name ====help record==== record input - record input into file record output - record output into file ====help playback==== playback input - read debugger commands from file playback output - playback record file ====help history==== history - display previous commands to debugger (see $lines) ! - invoke 'th from beginning command !- - invoke 'th from last command ! - invoke last command beginning with str ====help lineedit==== setenv LINEEDIT - set in C shell before invoking dbx. Enables line editing capabilities described in csh(1). ^P, ^E, ^F, ^A, ^B, ^D, ^N, ...- shell edit line capabilities command ; command ... - multiple debugger commands per line \n - null line repeats last command ^Z - symbol name completion ====help run==== run arg1 arg2 ... < f1 >& f2 - begin execution of the program ====help rerun==== rerun - restart execution of the program ====help stop==== stop at - stop at current line stop at - suspend execution at the line stop in - suspend execution when is called stop if - suspend execution if the is true stop at if - suspend execution at the line stop in if - suspend execution when is called stop - suspend execution when changed stop at - suspend execution at when changed stop in - suspend execution when changed within stop - suspend execution in a when statement ====help step==== step - single step n lines (assumes 1 for ) ====help next==== next - step over next line n times (assumes 1) ====help trace==== trace - print when it changes trace at - print when is reached trace in - print when call trace at if - print when is reached and trace in if - print when call and ====help delete==== delete ... - remove trace, stop or record of given number delete all - remove all trace, stop or record delete * - remove all trace, stop or record ====help catch==== catch - print all caught signal catch - stop when signal found ====help ignore==== ignore - print all ignored signals ignore - ignore signal ====help cont==== [n] cont - continue execution [n] cont - continue with signal cont to - continue until is reached (temporary breakpoint) cont in - continue until is reached (see above) cont to - continue with signal until (see above) cont in - continue with signal until (see above) ====help return==== return - continue until the current procedure returns return - continue until return to ====help when==== when { } - when is true, execute command_list when at {} - when reach , execute command_list when in {} - when reach , execute command_list ====help goto==== goto - goto and continue execution ====help print==== print ... - print the value of the expressions ====help printx==== printx ... - print the value of the expressions in hex ====help printo==== printo ... - print the value of the expressions in octal ====help printd==== printd ... - print the value of the expressions in decimal ====help printf==== printf "string", exp, ... - print expressions using C format descriptor strings ====help printregs==== printregs - print all the register values out ====help where==== where [n] - print currently active procedures ====help status==== status - print trace/stop/record's in effect ====help whatis==== whatis - print the declaration of the name ====help which==== which - print which version of name is being used ====help whereis==== whereis - print all versions of name ====help assign==== assign = - change program variable ====help tag==== tag tagname - sets current file/line to location specified by tagname. See ctags(1) for info on tags. tagvalue (tagname) - returns the value of tagname ====help up==== up - move up activation levels in the stack ====help down==== down - move down activation levels in the stack ====help func==== func - move to activation level func - move to activation level of ====help dump==== dump - dump variables for current or named proc dump . - dump variables for all procs on the stack ====help display==== [/ | ?] - display count number of formatted memory items .[/ | ?] - display next/prev group of memory formats: d - print 2 bytes in decimal dd - print 4 bytes in decimal D - print 8 bytes in decimal o - print 2 bytes in octal oo - print 4 bytes in octal O - print 8 bytes in octal x - print 2 bytes in hexadecimal xx - print 4 bytes in hexadecimal X - print 8 bytes in hexadecimal b - print 1 byte in octal c - print 1 byte as a character s - print a string of characters, ending in null f - print single precision real number g - print double precision real number G - print extended precision real number n - use expression type to determine format i - print machine instructions ====help list==== list , - list source lines from to list : - list source lines at for lines list - list lines at for $listwindow lines list - list lines at $cursrcline for $listwindow lines ====help search==== / - look for string in current file ? - look (backward) for string in current file [/ | ?]M - look through 64-bit memory locations, anded with , for ====help edit==== edit - invoke editor on current file edit - invoke editor on file ====help file==== file - print current file file - change current file to file ====help use==== use - print list of source directories use ... - replace source directories with given list ====help set==== set - display set variables set = - define and assign to debugger variable unset - unset debugger variable ====help setenv==== setenv name "string" - set environment variable to ====help sh==== sh - perform shell command ====help stopi==== stopi at
- suspend execution at the address stopi in - suspend execution when is called stopi if - suspend execution if the is true stopi at
if - suspend execution at the address if stopi in if - suspend when is called if ====help conti==== [n] conti - continue with signal conti to
- continue until
is reached (temporary breakpoint) conti in - continue until is reached (see above) conti to
- continue with signal until
(see above) conti in - continue with signal until (see above) ====help stepi==== stepi - single step assembly instructions ====help nexti==== nexti - step over next instruction times(see next) ====help tracei==== tracei - print when it changes tracei at
- print when
is reached tracei in - print when call tracei at
if -print when at
and tracei in if - print when call and ====help listobj==== listobj - list the objects being used in shared env. addobj ... - add the named objects' symbol tables into dbx for debugging purpose stbadd ... - add the named symbol tables into dbx for debugging purpose without add any objects stbdel ... - delete the named symbol tables from dbx ====help enable==== enable all - enable all disabled events (breakpoints) enable , ,... - enable events of specified numbers ====help disable==== disable all - disable all events (breakpoints) disable , ,... - disable events of specified numbers ====help kernel==== kps - do a ps on kernel /dev/mem or core ====help tlist==== tlist - list threads ====help tset==== tset - set the current thread ====help tstack==== tstack [n] - print the stacks for all the threads ====help call==== call (,,...)- call passing parameters print () - print return value of ====help attach==== attach - attach to running process with pid ====help detach==== detach [] - detach from process with pid or current process; process continues running ====help plist==== plist - list all attached processes ====help switch==== switch - switch focus to attached process with pid ====help variable==== $addrfmt printf format string dbx prints addresses with $byteaccess non-0 => dbx accesses memory items less than 4 bytes with special ptrace requests, used for intrepid system development. default - 0. $casesense 0 => ignore case when searching for a specific variable name. set to non-0 if you have two variables with same name but different case. default-0. $curevent this is the current event (breakpoint,record,etc) that was added or encountered. set only by dbx. $curline current line we're looking at. set to the middle of windows of lines. set only by dbx. $cursrcline one beyond last line we looked at set only by dbx. $curpc current instruction address we're looking at akin to curline $datacache non-0 => dbx caches data from the process we're debugging so repeated access is quick; system developer may want to turn this off if their memory is changed asynchronously. default - 1. $defin internal use by dbx $defout internal use by dbx $dispix when debugging pixie code, if you want to see the real instructions being executed set this to non-0; default - 0. $dynamic_scope 1=> All active procedure scopes, most recent to least recent, may be searched to resolve each variable name. 0=> only the current procedure's scope is searched. default - 1. $hexchars output chars in hex (set, unset) $hexin input constants are assumed in hex (set, unset) $hexints output integers in hex (set, unset) $hexstrings output strings in hex(set, unset) $historyevent last history line number. set by dbx $kdebug_dbgtty terminal on kdebug gateway system used for debug messages $kdebug_host host name of kdebug gateway system $kdebug_line port name from /etc/remote used to connect to kdebug test system $lines number of lines for history. default - 20 $listwindow how big the window should be on a "list" command. default - 10 $main name of procedure dbx start out in. default - "main" $maxstrlen maximum characters dbx will print out for a string. default - 128. $module_path alternate path to look for loadable modules (default - null) $module_verbose 1=>Verbose module searching. default - 0. $octin input constants are assumed in octal (set, unset) $octints output integers in octal (set, unset) $printwhilestep non-0 implies print out every line/inst for the "step[i] n" command. default - 0 => only print last line/inst stepped to. $page 0 => paginate dbx output accessing to continue at the end of each page. non-0 => continuous output. default - 1. $pagewindow number of lines in a page, default - 22 (room left for More (n if no)? continuation query). $pimode print input while playing it back if this is non-0 otherwise don't default - 0. $printdata if non-0 print contents of registers used next to each instruction displayed. default - 0. $printparams if non-0 print parameters during a stack trace. default - 1. $printtargets if non-0 print labels of jump instruction targets. default - 1. $printwide if non-0 print variable contents in a horizontal format rather than vertical. default - 0. $prompt this contains the dbx prompt string. default "(dbx)" $readtextfile if non-0 read all instructions from the text file. default - 1. $repeatmode if non-0 repeat last command when an empty line is entered. default - 1 $regstyle non-0 => print out regs in normal format (r0,r1,...r31). 0 => print out regs in other format (zero, at, v0, v1,...). default - 1. $rimode if non-0 record input while recording output. default - 0. $sigtramp contains name of signal handler wrapper routine. on BSD it is "sigvec" and on SYSV "sigtramp". $stop_on_exec if set, a process that calls execv or execve will stop at the main entry point of the new image. Default is set. $stop_on_fork if set, the child process from a fork call will be stopped after the fork call. Default is set. $stop_all_forks if set, dbx will stop on any fork. Differs from stop_on_fork in that no attempt is made to filter out fork calls from library calls. Default is off. $tagfile contains the name of the file to search for the tag command and tagvalue macro. $traploops maximum number of consecutive invocations of a SIGTRAP handler. default - 3. $use_sockets if set, use sockets for sable, else use namedpipes ====help register==== $pc - current user pc $ps - current ps register (for kernel debugging, always 8 for user) $fpcr - current floating point control register $vfp - frame pointer register $sp - current value of stack pointer $rn - register n $fn - floating point register ====help builtin==== $address - pointer type $unsigned - integer type $integer - integer type $char - char type $boolean - boolean type $real - real type false = 0 false and true values true = 1 nil = 0 Nil ====help expression==== DEBUGGER OPERATORS # (address of line ) C LANGUAGE - UNARY ! & + - * sizeof() C LANGUAGE - BINARY % << >> ^ == <= >= != < > & && | || + - * / [] -> . PASCAL - UNARY not ^ + - PASCAL - BINARY mod = <= >= <> < > and or + - * / div [] . FORTRAN - UNARY + -