Inspect Manual
Inspect Manual—429164-006
8-1
8 Using Inspect With C
Starting to Debug a C Program on page 8-1
Scope Units and Scope Paths on page 8-1
Code Locations on page 8-2
Data Locations on page 8-5
Expressions on page 8-7
C Data Types and Inspect on page 8-8
Inspect Enhancements and Restrictions for C on page 8-10
Command Usage Guidelines for C Programmers on page 8-11
Starting to Debug a C Program
When you start a C program, the C library performs certain start-up operations before
your program begins executing. To execute the start-up code and get to your program,
set a breakpoint in your program then resume execution; for example:
Scope Units and Scope Paths
C has only one type of scope unit: the function. When debugging a program written in
C, you must specify a function name whenever an Inspect command expects a scope
unit.
Use this syntax to identify C scope paths in Inspect:
-COBJ- BREAK #main
-COBJ- RESUME
scope-path:
#function