HP-UX Programming Tools Release Notes
Chapter 4 29
Problem Descriptions and Fixes
Problems and Limitations
1. Issue the dde command without a target program argument.
$ dde
2. Turn on system-level debugging.
pro sys -on
NOTE Turning on system-level debugging in step 2 will prevent the debugger
from setting the usual breakpoints at the entry and exit statements of
the main program. To establish those breakpoints, use the following
commands:
bre main
bre main\$
3. Issue the debug command to debug your program. The debugger
stops at the beginning of the system code that precedes the main
program.
deb myprog
(Warning) "Property system -on" causes deferred
availability of shared library information.
Executing image in process 29969: "/home/smith/myprog".
Stopped at: $START$ (00001FB0)
4. Turn off system-level debugging.
pro sys -off
5. Use the initialize -altdbinfo command to load alternate
debugging information for shared libraries, so that you have access to
system library entry points.
ini -alt
6. Set a breakpoint on the system routine __map_dld, then issue the go
command. (Note that the name __map_dld begins with two
underscores.) When the debugger stops, you can delete the
breakpoint. Then, issue a go -return command. This causes the
debugger to stop immediately after the shared libraries are loaded.
bre __map_dld
Breakpoint(s) set.
lis bre
breakpoint \\__map_dld # `va(00002254) ;# [33]
go