Inspect Manual

Using Inspect With TNS/R Native Programs
Inspect Manual429164-006
17-5
Dynamic-Link Libraries (DLLs)
TNS/R native user libraries are implemented as a special form of a native shared run-
time libraries (SRLs). From a debugging perspective, this special form of SRL behaves
the same as a TNS user library.
The process memory architecture and implementation of TNS/R native user libraries
differs from TNS user libraries. The distinction between user code and user library
space (UC and UL) does not exist in TNS/R native processes. There is one address
space for TNS/R native processes. Because of this difference in process memory, you
no longer need to specify a code location as user code (UC) or user library (UL).
By default, Inspect will not load public SRLs. Inspect does load ULs and private SRLs.
Use the SELECT PROGRAM command to load SRL files.
For more information on TNS user libraries, see the Binder Manual.
For more information on TNS/R native user libraries, see the nld Manual and noft
Manual.
Dynamic-Link Libraries (DLLs)
Inspect does not support debugging of any TNS/R native process that uses Dynamic-
Link Libraries (DLLs). To debug a process that uses DLLs, you must use either Visual
Inspect or Debug.
For more information about programming with DLLs, see the DLL Programmer’s Guide
for TNS/R Systems.
Example
Inspect does not automatically load the symbol files for Public SRLs. The ADD
PROGRAM and SELECT PROGRAM command can be used to load an SRL if
necessary. For example, to set a break point in the function printf. Using the SELECT
PROGRAM command, you can load the SRL which contains the printf function, and
set the break point.
-PROG-MATCH SCOPE printf
No scopes found that match printf
-PROG-SELECT PROGRAM 1 SRL ($SYSTEM.SYS00.ZCRTLSRL)
Program
Num Program ID Name Type State Location
*1 00,00034 ETEST TNS/R HOLD #main.#
-PROG-MATCH SCOPE printf
Library Procedures (\CHIMP.$SYSTEM.SYS00.ZCRTLSRL):
printf
-PROG-BREAK #printf
Num Type Subtype Location
2 Code #printf.#73
-PROG-RESUME
INSPECT TNS/R BREAKPOINT 2: #printf
241,00,00034 ETEST #printf.#73
-PROG-TRACE
Num Lang Location
0 C #printf.#73
1 C #main.#13
2 C #_MAIN.#36
-PROG-