Native Inspect Manual (H06.04+)

Introducing Native Inspect
Native Inspect Manual528122-005
1-20
Listing DLLs
Listing DLLs
Native Inspect maintains a list of the loadfiles that compose the current program. You
can display the list of loadfiles by entering the info command with the dll option.
Loading Symbols for DLLs
Native Inspect automatically loads symbols for the program file and for explicitly loaded
DLLs. You must explicitly load symbols for other DLLs using the symbol command or
symbol-file command. To explicitly add additional symbol files at a specific address,
use the add-symbol-file command.
Addressing Symbols for DLLs Loaded at Another Address
If a user loads a symbol file for a DLL before a program call to dlopen() to load the
DLL, Native Inspect uses the preferred address of the DLL as the basis for symbol
address calculations. Then, when the DLL is loaded, Native Inspect again attempts to
load the symbols using the actual load address for the DLL.
Setting Breakpoints
Native Inspect does not support the ability to set breakpoints on DLL functions before
the DLL is loaded; you must wait until the DLL is loaded. Use the add-symbol-file
command if you want to specify the base address relative to which symbolic addresses
are calculated.
Handling Events
When Native Inspect receives an event, it informs you what event has occurred and
then updates the debugging context (that is, information specific to the current process,
such as breakpoints, loaded DLLs, and the current register values).
The type of events that have the most impact on debugging with Native Inspect are
debugging events, which typically suspend a program under debugger control. For
example, a breakpoint is a debugger-induced debugging event.
Specific responses to significant events are listed in Table 1-2.
Assessing Your Location After an Event
If you are uncertain about your current program location after an event occurs, you can
list the current frame by using the frame command, select-frame command:
(eInspect 6,679): frame
#0 test_complexTypes() () at \SYS03.$D007.SYMBAT1.SCXXTST:424
424 printf( "%s test_complexTypes\n", getStepPrefix( 1 ) );