Debugging a Program With dbx

Variables Valid for the Given Event

For Event sig

$sig

Signal number that caused the event 

$sigstr

Name of $sig 

$sigcode

Subcode of $sig if applicable 

$sigcodestr

Name of $sigcode 

$sigsender

Process id of sender of the signal, if appropriate 

For Event exit

$exitcode

Value of the argument passed to _exit(2) or exit(3) or the return value of main 

For Events dlopen and dlclose

$dlobj

Pathname of the load object dlopened or dlclosed 

For Events sysin and sysout

$syscode

System call number 

$sysname

System call name 

For Event proc_gone

$reason

One of signal, exit, kill, or detach