A P P E N D I X  B

Debugger Command Comparison


Prism Equivalents for Common GDB and dbx Commands

The following tables list approximately equivalent Prism commands for some common dbx and GNU Debugging (GDB) commands.

TABLE B-1 Breakpoint and Watchpoint Commands

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 Commands

GDB

dbx

Prism

backtrace n

where n

where n

info reg reg

print $reg

print $reg


TABLE B-3 Execution Control Commands

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 Address Commands

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 Signal Commands

GDB

dbx

Prism

handle sig

stop sig sig

catch sig


TABLE B-7 Debugging Target Commands

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 Debugger Environment Commands

GDB

dbx

Prism

dir name

pathmap name

use name

show dir

pathmap

use


TABLE B-9 Source File Commands

GDB

dbx

Prism

forw regexp

search regexp

/regexp

rev regexp

bsearch regexp

?regexp