JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.2: Debugging a Program With dbx
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.  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

S

sample .dbxrc file, Initialization File Sample
save command
Saving and Restoring a Debugging Run
save Command
saving
debugging run to a file
Saving and Restoring a Debugging Run
Saving a Series of Debugging Runs as Checkpoints
series of debugging runs as checkpoints, Saving a Series of Debugging Runs as Checkpoints
scope
changing the visiting, Changing the Visiting Scope
current
Navigating To Code
Variables That Reflect the Current Scope
defined, Program Scope
lookup rules, relaxing, Relaxing the Scope Lookup Rules
visiting, Visiting Scope
changing, Changing the Visiting Scope
components of, Components of the Visiting Scope
scope_global_enums environment variable, Setting dbx Environment Variables
scope_look_aside environment variable
Setting dbx Environment Variables
Relaxing the Scope Lookup Rules
scope resolution operators, Qualifying Symbols With Scope Resolution Operators
scope resolution search path, Scope Resolution Search Path
scopes command, scopes Command
search command, search Command
segmentation fault
finding line number of, Using dbx to Locate Problems
Fortran, causes, Debugging Segmentation Faults
generating, Using dbx to Locate Problems
selecting from a list of C++ ambiguous function names, Selecting From a List of C++ Ambiguous Function Names
session, dbx
quitting, Quitting Debugging
starting, Starting a Debugging Session
session_log_file_name environment variable, Setting dbx Environment Variables
setting
a trace, Setting a Trace
breakpoints
at a member function of a template class or at a template function, stop in function Command
at all instances of a function template, stop infunction name Command
in all member functions a class, Setting Breakpoints in All Member Functions of a Class
in dynamically loaded libraries, Setting Breakpoints in Dynamically Loaded Libraries
in member functions of different classes, Setting Breakpoints in Member Functions of Different Classes
in native (JNI) code, Setting Breakpoints in Native (JNI) Code
in objects, Setting Breakpoints in Objects
on Java methods, Setting Breakpoints on Java Methods
with filters that contain function calls, Using a Filter With a Conditional Event
dbx environment variables with the dbxenv command, Setting dbx Environment Variables
filters on breakpoints, Setting Filters on Breakpoints
multiple breakpoints in nonmember functions, Setting Multiple Breakpoints in Nonmember Functions
shared libraries
compiling for dbx, Shared Libraries Require the -g Option for Full dbx Support
setting breakpoints in, Setting Breakpoints in Shared Libraries
shared objects
fixing, How Fix and Continue Operates
using fix and continue with, Fix and Continue
show_static_members environment variable, Setting dbx Environment Variables
showblock command
Turning On Memory Use and Memory Leak Checking
showblock Command
showleaks command
default output of, Fixing Memory Leaks
error limit for, Limiting the Number of Errors Reported
report resulting from, Possible Leaks
syntax, showleaks Command
using to ask for a leaks report, Generating a Leak Report
showmemuse command
Using Memory Use Checking
showmemuse Command
sig event, sig signal
signals
cancelling, Understanding Signal Events
catching, Catching Signals
changing default lists, Changing the Default Signal Lists
forwarding, Understanding Signal Events
FPE, trapping, Trapping the FPE Signal (Solaris Platforms Only)
handling automatically, Automatically Handling Signals
ignoring, Catching Signals
listing those currently being ignored, Catching Signals
listing those currently being trapped, Catching Signals
names that dbx accepts, Catching Signals
sending in a program, Sending a Signal to a Program
single stepping
at the machine-instruction level, Single Stepping at the Machine-Instruction Level
through a program, Single Stepping
slicing
arrays, Using Slices
C and C++ arrays, Array Slicing Syntax for C and C++
Fortran arrays, Array Slicing Syntax for Fortran
source command, source Command
source files, finding
Mapping the Compile-time Directory to the Debug-time Directory
Finding Source and Object Files
source listing, printing, Printing a Source Listing
SPARC registers, SPARC Register Information
specifying a path for class files that use custom class loaders, Specifying a Path for Class Files That Use Custom Class Loaders
stack_find_source environment variable
Setting dbx Environment Variables
Changing the Visiting Scope
stack frame, defined, Using the Call Stack
stack_max_size environment variable, Setting dbx Environment Variables
stack trace, Tracing Calls
displaying, Displaying and Reading a Stack Trace
example
Displaying and Reading a Stack Trace
Displaying and Reading a Stack Trace
reading, Displaying and Reading a Stack Trace
using on OpenMP code, Using Stack Traces
stack_verbose environment variable, Setting dbx Environment Variables
starting dbx, Starting dbx or dbxtool and Loading Your Program
starting dbxtool, Starting dbx or dbxtool and Loading Your Program
startup options, Options
status command, status Command
step_abflow environment variable, Setting dbx Environment Variables
step command
Stepping Through a Program
Exception Handling in dbx
step Command
step event, step
step_events environment variable
Setting dbx Environment Variables
Efficiency Considerations
step_granularity environment variable
Setting dbx Environment Variables
Single Stepping
step to command
Stepping Through Your Program
Stepping Through a Program
Native Mode Syntax
step up command
Stepping Through a Program
Native Mode Syntax
stepi command
Single Stepping at the Machine-Instruction Level
stepi Command
stepping through a program
Stepping Through Your Program
Stepping Through a Program
stop at command
Setting a stop Breakpoint at a Line of Source Code
Setting a stop Breakpoint in a Function
stop change command, Stopping Execution When Variables Change
stop command, stop in function Command
syntax, stop Command
using to set breakpoint at all member functions of a C++ template class, stop inclass classname Command
using to set breakpoints at all instances of a function template, stop infunction name Command
using to stop in all member functions of a C++ template class, stop inclass classname Command
stop event, stop
stop inclass command, Setting Breakpoints in All Member Functions of a Class
stop inmember command, Setting Breakpoints in Member Functions of Different Classes
stopi command
Setting Breakpoints at the Machine-Instruction Level
stopi Command
stopping
a process with Ctrl+C, Using Ctrl+C to Stop a Process
in all member functions of a template class, stop inclass classname Command
process execution, Stopping a Process Execution
program execution
if a conditional statement evaluates to true, Stopping Execution on a Condition
if the value of a specified variable has changed, Stopping Execution When Variables Change
striding across slices of arrays, Using Strides
stripped programs, Completely Stripped Programs
suppress command
syntax, suppress Command
using to limit reporting of runtime checking errors, Running Your Program
using to list errors being suppressed in files not compiled for debugging, Default Suppressions
using to manage runtime checking errors, Using Suppression to Manage Errors
using to suppress runtime checking errors, Suppressing Errors
suppress_startup_message environment variable, Setting dbx Environment Variables
suppression of last error, Suppression of Last Error
symbol_info_compression environment variable, Setting dbx Environment Variables
symbol names, qualifying scope, Qualifying Symbols With Scope Resolution Operators
symbols
choosing among multiple occurrences of, Choosing Among Multiple Occurrences
determining which dbx uses, Determining Which Symbol dbx Uses
printing a list of occurrences, Printing a List of Occurrences of a Symbol
sync command, sync Command
sync event, sync
syncrtld event, syncrtld
syncs command, syncs Command
sysin event, sysin code | name
sysout event, sysout code | name
system event specifications, System Event Specifications