JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.3: Debugging a Program With dbx     Oracle Solaris Studio 12.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  Getting Started With dbx

2.  Starting dbx

3.  Customizing dbx

4.  Viewing and Navigating To Code

5.  Controlling Program Execution

6.  Setting Breakpoints and Traces

7.  Using the Call Stack

8.  Evaluating and Displaying Data

9.  Using Runtime Checking

10.  Fixing and Continuing

11.  Debugging Multithreaded Applications

12.  Debugging Child Processes

13.  Debugging OpenMP Programs

14.  Working With Signals

15.  Debugging C++ With dbx

16.  Debugging Fortran Using dbx

17.  Debugging a Java Application With dbx

18.  Debugging at the Machine-Instruction Level

19.  Using dbx With the Korn Shell

20.  Debugging Shared Libraries

A.  Modifying a Program State

B.  Event Management

C.  Macros

D.  Command Reference

Index

Numbers and Symbols

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

C

C++
ambiguous or overloaded functions, index iconSelecting From a List of C++ Ambiguous Function Names
backquote operator, index iconBackquote Operator
class
declarations, looking up, index iconViewing Variables, Members, Types, and Classes
definition, looking up, index iconLooking Up Definitions of Types and Classes
displaying all the data members directly defined by, index iconPrinting C++ Pointers
displaying all the data members inherited from, index iconPrinting C++ Pointers
printing the declaration of, index iconLooking Up Definitions of Types and Classes
seeing inherited members, index iconLooking Up Definitions of Types and Classes
viewing, index iconViewing Variables, Members, Types, and Classes
compiling with the -g0 option, index iconCompiling with the -g Option
compiling with the -g option, index iconCompiling with the -g Option
double-colon scope resolution operator, index iconC++ Double Colon Scope Resolution Operator
exception handling, index iconException Handling in dbx
function template instantiations, listing, index iconLooking Up Definitions of Variables, Members, and Functions
inherited members, index iconLooking Up Definitions of Types and Classes
mangled names, index iconLinker Names
object pointer types, index iconPrinting C++ Pointers
printing, index iconPrinting C++ Pointers
setting multiple breakpoints
index iconSetting Multiple Breaks in C++ Programs
index iconSetting Breakpoints in Member Functions of Different Classes
template debugging, index iconDebugging With C++ Templates
template definitions
displaying, index iconLooking Up Definitions of Variables, Members, and Functions
fixing, index iconFixing C++ Template Definitions
tracing member functions, index iconSetting a Trace
unnamed arguments, index iconEvaluating Unnamed Arguments in C++ Programs
using dbx with, index iconUsing dbx With C++
call command
syntax, index iconcall Command
using to call a function, index iconCalling a Function
using to call a function explicitly, index iconCalling a Function
using to call a procedure
index iconCalling a Function
index iconcall Command
using to explicitly call a function instantiation or member function of a class template, index iconcall function_name(parameters) Command
calling
a function
index iconCalling a Function
index iconCalling a Function
a function instantiation or a member function of a class template, index iconcall function_name(parameters) Command
a procedure, index iconcall Command
member template functions, index iconDebugging With C++ Templates
call stack, index iconUsing the Call Stack
defined, index iconUsing the Call Stack
deleting
all frame filters, index iconHiding Stack Frames
frames, index iconHiding Stack Frames
finding your place on, index iconFinding Your Place on the Stack
frame, defined, index iconUsing the Call Stack
hiding frames, index iconHiding Stack Frames
looking at, index iconLooking at the Call Stack
moving
down, index iconMoving Down the Stack
to a specific frame in, index iconMoving to a Specific Frame
up, index iconMoving Up the Stack
popping
index iconPopping the Call Stack
index iconChanging a Function Currently Being Executed
index iconChanging a Function Presently on the Stack
index iconpop Command
one frame of, index iconChanging Variables After Fixing
removing the stopped in function from, index iconPopping the Call Stack
walking
index iconWalking the Call Stack to Navigate To Code
index iconWalking the Stack and Returning Home
cancel command, index iconcancel Command
C++ application that embeds a Java application, debugging, index iconDebugging a C Application or C++ Application That Embeds a Java Application
C application that embeds a Java application, debugging, index iconDebugging a C Application or C++ Application That Embeds a Java Application
c_array_op environment variable, index iconSetting dbx Environment Variables
case sensitivity, Fortran, index iconUppercase Letters
catch blocks, index iconException Handling in dbx
catch command
index iconCatching Signals
index iconTrapping the FPE Signal (Solaris Platforms Only)
index iconcatch Command
catching exceptions of a specific type, index iconintercept [-all] [-x] [-set] [typename] Command
catch signal list, index iconCatching Signals
change event, index iconchange variable
changing
a function not yet called, index iconChanging a Function Not Yet Called
an executed function, index iconChanging an Executed Function
default signal lists, index iconChanging the Default Signal Lists
function currently being executed, index iconChanging a Function Currently Being Executed
function presently on the stack, index iconChanging a Function Presently on the Stack
variables after fixing, index iconChanging Variables After Fixing
check command
index iconFinding Memory Access Problems and Memory Leaks
index iconTurning On Memory Access Checking
index iconTurning On All Runtime Checking
index iconcheck Command
checkpoints, saving a series of debugging runs as, index iconSaving a Series of Debugging Runs as Checkpoints
child process
attaching dbx to, index iconAttaching to Child Processes
debugging, index iconAttaching to Child Processes
interacting with events, index iconInteracting With Events
using runtime checking on, index iconUsing Runtime Checking on a Child Process
choosing among multiple occurrences of a symbol, index iconChoosing Among Multiple Occurrences
classes
displaying all the data members directly defined by, index iconPrinting C++ Pointers
displaying all the data members inherited from, index iconPrinting C++ Pointers
looking up declarations of, index iconViewing Variables, Members, Types, and Classes
looking up definitions of, index iconLooking Up Definitions of Types and Classes
printing the declarations of, index iconLooking Up Definitions of Types and Classes
seeing inherited members, index iconLooking Up Definitions of Types and Classes
viewing, index iconViewing Variables, Members, Types, and Classes
CLASSPATHX environment variable
index iconSetting dbx Environment Variables
index iconEnvironment Variables for Java Debugging
class template instantiations, printing a list of
index iconDebugging With C++ Templates
index iconwhereis name Command
clear command, index iconclear Command
clearing breakpoints, index iconListing and Clearing Breakpoints
code compiled without -g option, index iconCode Compiled Without the -g Option
collector archive command, index iconcollector archive Command
collector command, index iconcollector Command
collector dbxsample command, index iconcollector dbxsample Command
collector disable command, index iconcollector disable Command
collector enable command, index iconcollector enable Command
collector heaptrace command, index iconcollector heaptrace Command
collector hw_profile command, index iconcollector hw_profile Command
collector limit command, index iconcollector limit Command
collector mpitrace command, index iconcollector mpitrace Command
collector pause command, index iconcollector pause Command
collector profile command, index iconcollector profile Command
collector resume command, index iconcollector resume Command
collector sample command, index iconcollector sample Command
collector show command, index iconcollector show Command
collector status command, index iconcollector status Command
collector store command, index iconcollector store Command
collector synctrace command, index iconcollector synctrace Command
collector tha command, index iconcollector tha Command
collector version command, index iconcollector version Command
commands
alias, index iconCreating Your Own dbx Commands
assign
syntax, index iconassign Command
using to assign a value to a variable
index iconAssigning a Value to a Variable
index iconassign Command
using to reassign correct values to global variables, index iconChanging Variables After Fixing
using to restore a global variable, index iconChanging Variables After Fixing
attach
index iconAttaching dbx to a Running Process
index iconattach Command
bcheck, index iconbcheck Syntax
bind, index iconRebinding of Editing Functions
bsearch, index iconbsearch Command
call
syntax, index iconcall Command
using to call a function, index iconCalling a Function
using to call a procedure
index iconCalling a Function
index iconcall Command
using to explicitly call a function instantiation or member function of a class template, index iconcall function_name(parameters) Command
cancel, index iconcancel Command
catch
index iconCatching Signals
index iconTrapping the FPE Signal (Solaris Platforms Only)
index iconcatch Command
check
index iconFinding Memory Access Problems and Memory Leaks
index iconTurning On Memory Access Checking
index iconTurning On All Runtime Checking
index iconcheck Command
clear, index iconclear Command
collector, index iconcollector Command
collector archive, index iconcollector archive Command
collector dbxsample, index iconcollector dbxsample Command
collector disable, index iconcollector disable Command
collector enable, index iconcollector enable Command
collector heaptrace, index iconcollector heaptrace Command
collector hw_profile, index iconcollector hw_profile Command
collector limit, index iconcollector limit Command
collector mpitrace, index iconcollector mpitrace Command
collector pause, index iconcollector pause Command
collector profile, index iconcollector profile Command
collector resume, index iconcollector resume Command
collector sample, index iconcollector sample Command
collector show, index iconcollector show Command
collector status, index iconcollector status Command
collector store, index iconcollector store Command
collector synctrace, index iconcollector synctrace Command
collector tha, index iconcollector tha Command
collector version, index iconcollector version Command
cont
index iconContinuing After Fixing
index iconResuming Execution
continuing execution of your program with
index iconContinuing Execution of a Program
index iconRunning Your Program
limitations for files compiled without debugging information, index iconHow Fix and Continue Operates
syntax, index iconcont Command
using to continue execution after restoring a global variable, index iconChanging Variables After Fixing
using to continue execution of your program from a different line
index iconContinuing Execution of a Program
index iconChanging a Function Presently on the Stack
index iconcont at Command
dalias, index icondalias Command
dbx
index iconStarting a Debugging Session
index iconUsing the Process ID
index icondbx Command
dbxenv
index iconSetting dbx Environment Variables
index iconSetting dbx Environment Variables
index icondbxenv Command
debug
syntax, index icondebug Command
using to attach dbx to a running process, index iconAttaching dbx to a Running Process
using to attach to a child process, index iconAttaching to Child Processes
using to debug a core file, index iconDebugging a Core File in the Same Operating Environment
delete, index icondelete Command
detach
index iconDetaching a Process From dbx
index iconDetaching dbx From a Process
index icondetach Command
dis
index iconTypes of Program Locations
index iconUsing the dis Command
index icondis Command
display
index iconMonitoring Expressions
index iconMonitoring Expressions
index icondisplay Command
down
index iconMoving Down the Stack
index icondown Command
dump, index icondump Command
dump
using on OpenMP code, index iconUsing the dump Command
edit, index iconedit Command
examine
index iconTypes of Program Locations
index iconUsing the examine or x Command
index iconexamine Command
exception
index iconexception [-d | +d] Command
index iconexception Command
exists, index iconexists Command
file
index iconNavigating To a File
index iconTypes of Program Locations
index iconfile Command
files, index iconfiles Command
fix
index iconHow Fix and Continue Operates
index iconFixing Your Program
index iconfix Command
index iconfix Command
effects of, index iconTo Fix Your File
limitations for files compiled without debugging information, index iconHow Fix and Continue Operates
fixed, index iconfixed Command
fortran_modules, index iconfortran_modules Command
frame
index iconMoving to a Specific Frame
index iconframe Command
func
index iconNavigating To Functions
index iconTypes of Program Locations
index iconfunc Command
funcs, index iconfuncs Command
gdb, index icongdb Command
handler
index iconUsing Event Counters
index iconhandler Command
hide
index iconHiding Stack Frames
index iconhide Command
ignore
index iconUnderstanding Signal Events
index iconCatching Signals
index iconignore Command
import, index iconimport Command
intercept
index iconintercept [-all] [-x] [-set] [typename] Command
index iconintercept Command
java, index iconjava Command
jclasses, index iconjclasses Command
joff, index iconjoff Command
jon, index iconjon Command
jpkgs, index iconjpkgs Command
kill
index iconKilling a Program Without Terminating the Session
index iconChecking for Leaks
index iconkill Command
language, index iconlanguage Command
line
index iconTypes of Program Locations
index iconline Command
list, index iconTypes of Program Locations
syntax, index iconlist Command
using to print a source listing for a file or function, index iconPrinting a Source Listing
using to print the source listing for a function instantiation, index iconlist Expressions
listi
index iconUsing the listi Command
index iconlisti Command
loadobject, index iconloadobject Command
loadobject -dumpelf, index iconloadobject -dumpelf Command
loadobject -exclude, index iconloadobject -exclude Command
loadobject -hide, index iconloadobject -hide Command
loadobject -list, index iconloadobject -list Command
loadobject -load, index iconloadobject -load Command
loadobject -unload, index iconloadobject -unload Command
loadobject -use, index iconloadobject -use Command
lwp, index iconlwp Command
lwps
index iconUnderstanding LWP Information
index iconlwps Command
macro
index iconMacro Expansion
index iconmacro Command
mmapfile, index iconmmapfile Command
module
index iconListing Debugging Information for Modules
index iconmodule Command
modules
index iconListing Debugging Information for Modules
index iconListing Modules
index iconmodules Command
native, index iconnative Command
next
index iconStepping Through a Program
index iconnext Command
nexti
index iconSingle Stepping at the Machine-Instruction Level
index iconnexti Command
omp_loop, index iconomp_loop Command
omp_pr, index iconomp_pr Command
omp_serialize, index iconomp_serialize Command
omp_team, index iconomp_team Command
omp_tr, index iconomp_tr Command
pathmap
index iconFinding Source and Object Files
index iconTo Fix Your File
index iconUsing the pathmap Command To Improve Skimming
index iconpathmap Command
using to map the compile-time directory to the debug-time directory, index iconMapping the Compile-time Directory to the Debug-time Directory
pop
index iconChanging the Visiting Scope
index iconPopping the Call Stack
index iconChanging Variables After Fixing
index iconpop Command
syntax, index iconpop Command
print
syntax, index iconprint Command
syntax to slice a C or C++ array, index iconArray Slicing Syntax for C and C++
syntax to slice a Fortran array, index iconArray Slicing Syntax for Fortran
using to dereference a pointer, index iconDereferencing Pointers
using to evaluate a function instantiation or a member function of a class template, index iconprint Expressions
using to evaluate a variable or expression, index iconPrinting the Value of a Variable, Expression, or Identifier
using to print the value of an expression, index iconprint Command
proc, index iconproc Command
process control, index iconControlling Program Execution
prog, index iconprog Command
quit, index iconquit Command
regs
index iconUsing the regs Command
index iconregs Command
replay
index iconSaving and Restoring a Debugging Run
index iconSaving and Restoring Using replay
index iconreplay Command
rerun, index iconrerun Command
restore
index iconSaving and Restoring a Debugging Run
index iconRestoring a Saved Run
index iconrestore Command
rprint, index iconrprint Command
rtc showmap, index iconrtc showmap Command
rtc skippatch, index iconrtc skippatch Command
run
index iconRunning a Program
index iconrun Command
runargs, index iconrunargs Command
save
index iconSaving and Restoring a Debugging Run
index iconsave Command
scopes, index iconscopes Command
search, index iconsearch Command
showblock
index iconTurning On Memory Use and Memory Leak Checking
index iconshowblock Command
showleaks
default output of, index iconFixing Memory Leaks
error limit for, index iconLimiting the Number of Errors Reported
report resulting from, index iconPossible Leaks
syntax, index iconshowleaks Command
using to ask for a leaks report, index iconGenerating a Leak Report
showmemuse
index iconUsing Memory Use Checking
index iconshowmemuse Command
source, index iconsource Command
status, index iconstatus Command
step
index iconStepping Through a Program
index iconException Handling in dbx
index iconstep Command
stepi
index iconSingle Stepping at the Machine-Instruction Level
index iconstepi Command
step to
index iconStepping Through Your Program
index iconStepping Through a Program
index iconNative Mode Syntax
step up
index iconStepping Through a Program
index iconNative Mode Syntax
stop, index iconstop in function Command
syntax, index iconstop Command
using to set breakpoint at all member functions of a C++ template class, index iconstop inclass classname Command
using to set breakpoints at all instances of a function template, index iconstop infunction name Command
using to stop in all member functions of a C++ template class, index iconstop inclass classname Command
stop change, index iconStopping Execution When Variables Change
stopi
index iconSetting Breakpoints at the Machine-Instruction Level
index iconstopi Command
stop inclass, index iconSetting Breakpoints in All Member Functions of a Class
stop inmember, index iconSetting Breakpoints in Member Functions of Different Classes
suppress
syntax, index iconsuppress Command
using to limit reporting of runtime checking errors, index iconRunning Your Program
using to list errors being suppressed in files not compiled for debugging, index iconDefault Suppressions
using to manage runtime checking errors, index iconUsing Suppression to Manage Errors
using to suppress runtime checking errors, index iconSuppressing Errors
sync, index iconsync Command
syncs, index iconsyncs Command
that alter the state of your program, index iconCommands That Alter the State of the Program
thread
index iconViewing the Context of Another Thread
index iconthread Command
threads
index iconViewing the Threads List
index iconthreads Command
trace
index iconSetting a Trace
index icontrace Command
tracei
index iconTracing at the Machine-Instruction Level
index icontracei Command
uncheck
index iconTurning Off Runtime Checking
index iconuncheck Command
undisplay
index iconTurning Off Display (Undisplaying)
index iconundisplay Command
unhide
index iconHiding Stack Frames
index iconunhide Command
unintercept
index iconunintercept [-all] [-x] [typename] Command
index iconunintercept Command
unsuppress
index iconSuppressing Errors
index iconDefault Suppressions
index iconunsuppress Command
unwatch, index iconunwatch Command
up
index iconMoving Up the Stack
index iconup Command
use, index iconuse Command
watch
index iconMonitoring Expressions
index iconwatch Command
whatis
index iconLooking Up Definitions of Variables, Members, and Functions
index iconLooking Up Definitions of Types and Classes
index iconMacro Expansion
syntax, index iconwhatis Command
using to display the definitions of templates and instances, index iconwhatis name Command
using to obtain the function name assigned by the compiler, index iconEvaluating Unnamed Arguments in C++ Programs
when
index iconSetting a when Breakpoint at a Line
index iconwhen Command
index iconEvent Handlers
index iconwhen Command
wheni, index iconwheni Command
where
index iconFinding Your Place on the Stack
index iconTracing Calls
index iconwhere Command
whereami, index iconwhereami Command
whereis
index iconPrinting a List of Occurrences of a Symbol
index iconVerifying Which Variable dbx Uses
index iconwhereis name Command
index iconMacro Expansion
index iconwhereis Command
which
index iconChoosing Among Multiple Occurrences
index iconDetermining Which Symbol dbx Uses
index iconVerifying Which Variable dbx Uses
index iconMacro Expansion
index iconwhich Command
whocatches
index iconwhocatches typename Command
index iconwhocatches Command
x, index iconUsing the examine or x Command
compiling
optimized code, index iconCompiling with the -g Option
with the -g0 option, index iconCompiling a Program for Debugging
with the -g option, index iconCompiling a Program for Debugging
your code for debugging, index iconCompiling Your Code for Debugging
cond event, index iconcond condition-expression
cont command
continuing execution of your program with
index iconContinuing Execution of a Program
index iconRunning Your Program
limitations for files compiled without debugging information, index iconHow Fix and Continue Operates
syntax, index iconcont Command
using to continue execution after restoring a global variable, index iconChanging Variables After Fixing
using to continue execution of your program after fixing, index iconContinuing After Fixing
using to continue execution of your program from a different line
index iconContinuing Execution of a Program
index iconChanging a Function Presently on the Stack
index iconcont at Command
using to resume execution of a multithreaded program, index iconResuming Execution
continuing execution of a program, index iconContinuing Execution of a Program
after fixing, index iconContinuing After Fixing
at a specified line
index iconContinuing Execution of a Program
index iconcont at Command
controlling the speed of a trace, index iconControlling the Speed of a Trace
core file
debugging
index iconExamining a Core File
index iconDebugging a Core File
debugging mismatched, index iconDebugging a Mismatched Core File
examining, index iconExamining a Core File
core_lo_pathmap environment variable, index iconSetting dbx Environment Variables
-count event specification modifier, index icon-count n-count infinity
creating
a .dbxrc file, index iconCreating a .dbxrc File
event handlers, index iconCreating Event Handlers
C++ source files, specifying the location of, index iconSpecifying the Location of Your C Source Files or C++ Source Files
C source files, specifying the location of, index iconSpecifying the Location of Your C Source Files or C++ Source Files
current address, index iconTypes of Program Locations
current procedure and file, index iconCurrent Procedure and File
customizing dbx, index iconCustomizing dbx