The following tables list approximately equivalent Prism commands for some common dbx and GNU Debugging (GDB) commands.
Table B-1 Breakpoints and Watchpoints
GDB |
dbx |
Prism |
---|---|---|
break line |
stop at line |
stop at line |
break func |
stop in func |
stop in func |
break *addr |
stopi at addr |
stopi {addr} |
break ... if expr |
stop ... -if expr |
stop ... if expr |
cond n |
stop ... -if expr |
stop ... if expr |
watch expr |
stop expr |
stop expr |
info break |
status |
status |
info watch |
status |
status |
clear fun |
delete n |
delete n |
delete |
delete all |
delete all |
disable n |
handler -disable n |
disable n |
enable n |
handler -enable n |
enable n |
ignore n cnt |
handler -count n cnt |
ignore |
commands n |
when ... { cmds; } |
when ... { cmds; } |
Table B-2 Program Stack
GDB |
dbx |
Prism |
---|---|---|
backtrace n |
where n |
where n |
info reg reg |
print $reg |
print $reg |
Table B-3 Execution Control
GDB |
dbx |
Prism |
---|---|---|
finish |
step up |
stepout |
signal num |
cont sig num |
cont num |
set var=expr |
assign var=expr |
assign var=expr |
Table B-4 Display
GDB |
dbx |
Prism |
---|---|---|
x/fmt addr |
x addr/fmt |
addr/[mode] |
disassem addr |
dis addr |
addr/i |
Table B-5 Shell Commands
GDB |
dbx |
Prism |
---|---|---|
shell cmd |
sh cmd |
sh cmd |
Table B-6 Signals
GDB |
dbx |
Prism |
---|---|---|
handle sig |
stop sig sig |
catch sig |
Table B-7 Debugging Targets
GDB |
dbx |
Prism |
---|---|---|
attach pid |
debug - pid |
attach pid |
attach pid |
debug a.out pid |
attach pid |
exec file |
debug file |
load file |
core file |
debug a.out corefile |
load a.out; core corefile |
Table B-8 Controlling the Debugger
GDB |
dbx |
Prism |
---|---|---|
dir name |
pathmap name |
use name |
show dir |
pathmap |
use |
Table B-9 Source Files
GDB |
dbx |
Prism |
---|---|---|
forw regex |
search regexp |
/ |
rev regex |
bsearch regexp |
? |