Native Inspect Manual (H06.03+)

Table Of Contents
Contents
Native Inspect Manual528122-003
ii
1. Introducing Native Inspect (continued)
1. Introducing Native Inspect (continued)
Snapshot File Analysis 1-18
Creating a Snapshot 1-18
Opening a Snapshot 1-19
Debugging DLLs 1-19
Listing DLLs 1-19
Loading Symbols for DLLs 1-19
Addressing Symbols for DLLs Loaded at Another Address 1-20
Setting Breakpoints 1-20
Handling Events 1-20
Assessing Your Location After an Event 1-20
Switching Debuggers (To or From Inspect and Visual Inspect) 1-22
Stopping Native Inspect 1-23
Differences Between Native Inspect and WDB and GDB 1-23
2. Using Native Inspect
Quick Start for Inspect Users 2-1
Preparing to Debug Using Native Inspect 2-2
Compiling and Transferring Program Files 2-2
Gaining Control of a Process Using Native Inspect 2-3
Loading Symbols Information (If Necessary) 2-3
Determining the Compilation-Time Source Name (If Necessary) 2-5
Configuring a Search Path for Your Source Files (If Necessary) 2-5
For C/C++, Advancing Execution to Main() 2-6
Sample Native Inspect Session 2-7
Start Your Program Under Native Inspect 2-8
Load Symbols 2-8
Determine Compilation-Time Source Name 2-8
Set Source Name Mapping 2-8
Add Current Directory to Source Search Path 2-8
List Source 2-9
Set a Breakpoint on main() 2-9
Continue Execution 2-9
Trace the Stack (Back Trace) 2-9
List Source 2-9
Step Execution (Over Any Function Calls) 2-9
Print a Variable 2-10
Step Execution (Over Any Function Calls) 2-10
Step In to a Called Function 2-10