Sie sind auf Seite 1von 4

A full list of dbx commands

1 of 4

http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm

A full list of dbx commands. If you have gotten here, I pity you! I only know a couple, so don't ask me how
they work!

adb
Execute an `adb-style' command or enter `adb' mode
assign
Assign a new value to a program variable
bsearch Search backward in the current source file
button
Define a new button for the WorkShop Custom Buttone window
call
Call a procedure
cancel
Cancel the current signal
catch
Catch the given signal(s)
check
Enable checking of memory access, leaks, or usage (RTC)
clear
Clear breakpoints
collector Collect performance data
commands List all built-in commands with one-line descriptions
cont
Cause the process to continue execution
dbxdebug Displays internal state of dbx (for dbx developers' use)
dbxenv
List or set dbx customization variables
debug
List or change the program being debugged
delete
Delete breakpoints and other events
detach
Release the target process from dbx's control
dis
Disassemble machine instructions
display
Evaluate and print expressions at every stopping point
document Add help information for a command or topic
down
Move down the call stack (away from `main')
dump
Print all variables local to a procedure
edit
Invoke $EDITOR on a source file (or display the source when using the GUI)
examine Show memory contents
exception Print the value of the current C++ exception
exists
Check for existence of a symbol name
file
List or change the current file
files
List file names that match a regular expression
fix
Recompile and relink a source file
fixed
List names of all `fixed' files
frame
List or change the current stack frame number
func
List or change the current function
funcs
List all function names that match a regular expression
handler Modify event handlers (enable, disable, etc.)
help
Provide more information about a command or topic
hide
Hide stack frames that match a regular expression
history
Manipulate the command history list
ignore
Don't catch the given signal(s)
import
Import commands from a dbx command library
intercept Intercept throws (C++ exceptions) of the given type. Can only be??
language List or change the current source language
line
List or change the current line number
list
Display lines of a source file
1/23/2015 2:40 PM

A full list of dbx commands

2 of 4

http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm

listi
Display source and disassembled instructions
loadobject Print the name of the current loadobject
loadobjects List loadobject names
lwp
List or change the current LWP
lwps
List all LWPs in the process
mmapfile mmap a file that was mmapped during a core dump
module Read debugging information for one or more modules
modules List module names
next
Step one source line (stepping over calls)
nexti
Step one machine instruction (stepping over calls)
pathmap Map one pathname to another for finding source files, etc.
pop Remove one or more frames from the callstack
print Print the value of an expression
prog Manage programs being debugged and their attributes
quit Exit dbx
regs Print current value of registers
replay Replay debugging commands since last `run'
rerun Run the program with no arguments
restore Restore dbx to a previously saved state
rprint Print an expression using shell quoting rules
run Run the program with arguments
runargs Change the arguments of the target process
save Save commands to a file
scopes Print list of active scopes
search Search forward in the current source file
setenv Set an environment variable
showblock Show where the particular heap block was allocated from (RTC)
showleaks Report new memory leaks since last `showleaks' command (RTC)
showmemuse Show memory used since last `showmemuse' command (RTC)
source Execute commands from a given file
status List event handlers (breakpoints, etc.)
step Step one source line or statement (stepping into calls)
stepi Step one machine instruction (stepping into calls)
stop Set a source-level breakpoint
stopi Set a machine-level breakpoint
suppress Suppress reporting of memory errors (RTC)
thread List or change the current thread
threads List all threads
trace Show executed source lines, function calls, or variable changes
tracei Show machine instructions, function calls, or variable changes
unbutton Remove GUI buttons
uncheck Disable checking of memory access, leaks, or usage (RTC)
undisplay Undo `display' commands
unhide Undo `hide' commands
unintercept Undo `intercept' commands. Valid only with C++.
unsuppress Undo `suppress' commands (RTC)
up Move up the call stack (toward `main')
use List or change the directory search path
1/23/2015 2:40 PM

A full list of dbx commands

3 of 4

http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm

vitem Data Visualization interface


whatis Print type of expression or declaration of type
where Print the call stack
whereami Display the current source line
whereis Print all uses of a given name, or symbolic name of an address
which Print the full qualification of a given name
whocatches Tell where a C++ exception would be caught
sh commands:
. Read commands from a file
: No-op
[ `[ <expr> ]' is shorthand for `test <expr>'
bg Put a job into the background
bind Display or modify the emacs editing key bindings
break Break out of `while', `until', or `for' loop
builtin Use builtin version of command, ignoring functions and aliases
cd Change the working directory
continue Go to next iteration of `while', `until', or `for' loop
dalias Define a dbx-style (csh-style) alias
eval Evaluate text as a command
exec Execute a new program (terminate dbx)
exit Exit dbx
export Mark given environment variables to be exported
false Does nothing and returns non-zero
fc (Fix Command) Manipulate history list
fg Put a job into the foreground
getopts Parse positional parameters for options
hash Manipulate tracked aliases (fast command lookup)
jobs List all active jobs
kalias Define a ksh-style alias
kill Send a signal to a process; kill the target process
kprint (Korn print) Echo the arguments
let Evaluate ksh arithmetic expressions
read Read a line from a file or standard input
readonly Mark environment variables unchangeable
return Return from a ksh function
set Set ksh options or positional parameters
sh Execute a command explicitly from $PATH
shift Shift the positional parameters
test Check various file attributes, string comparison, etc.
times Print accumulated user and system times for dbx and children
trap Associate ksh commands with signals or process exit
true Does nothing and returns zero
typeset Set attributes of environment variables
ulimit List or change various resource limits
umask Restrict read/write/execute permissions for new files
unalias Remove aliatrue Does nothing and returns zero
typeset Set attributes of environment variables
ulimit List or change various resource limits
1/23/2015 2:40 PM

A full list of dbx commands

4 of 4

http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm

umask Restrict read/write/execute permissions for new files


unalias Remove alias definition
unset Remove definition of environment variables
wait Wait for background jobs to terminate
whence Display meaning of name (alias, function, builtin, command)
sh keywords:
case Multiway branching: case <string> in <cases> esac
do Command grouping: while <test> do <cmds> done
done Command grouping: while <test> do <cmds> done
elif Conditional execution: if then elif else fi
else Conditional execution: if then elif else fi
esac Multiway branching: case <string> in <cases> esac
fi Conditional execution: if then elif else fi
for Loop over a list: for <var> in <list> do <cmds> done
function Define a ksh function: function <name> { <cmds> }
if Conditional execution: if then elif else fi
in for ... in ... do ... done or case ... in ... esac
select Selection loop: select <var> in <list> do <cmds> done
then Conditional execution: if then elif else fi
time Report user and system times: time <cmd>
until Loop until condition is true: until <test> do <cmds> done
when Execute commands on given event
wheni Execute commands on given low-level event
while Loop while condition is true: while <test> do <cmds> done
{ Command grouping: { <cmd>; <cmd>; }
} Command grouping: { <cmd>; <cmd>; }s definition

1/23/2015 2:40 PM

Das könnte Ihnen auch gefallen