HP DCE/9000 Version 1.7 Application Development Tools for HP-UX 11.0 Release Note
32 HP DCE 1.7 Application Development Tools Release Note
Developing DCE Applications with HP DCE/ 9000
Notes on Debugging HP DCE Applications
Notes on Debugging HP DCE
Applications
The following are tips on debugging HP DCE applications. Also see
Programming with Threads on HP-UX (B2355-90060) for additional
information about debugging HP DCE Applications.
• To debug an HP DCE threads application with DDE, use the
-dce_thread option. By default, DDE assumes that the application is
single- or kernel-threaded.
The debug and dde commands have been extended to take the
-dce_thread option. For example:
debug -dce_thread average
dde -dce_thread average
See Section 3.2.1 (DDE) of the HP-UX Programming Tools Release
Notes (5965-4409) and the dde man page for more information about
the -dce_thread option.
• HP DCE uses the HP-UX SIGCHLD and SIGVTALRM signals
internally. When debugging HP DCE servers or clients, you must
ensure that these signals, when received, are passed along to the
target process. If you are using DDE or xdb, you can modify your
debugger start-up files as follows:
˜/.dderc:
alias `after_debug [ del int signal SIGCHLD;del int signal
SIGVTALRM]
˜/.xdbrc:
z 18 rs # do not stop or report SIGCHLD
z 20 rs # do not stop or report SIGVTALRM
See Programming with Threads on HP-UX and the discussion of
-signal() in this chapter for more information on the use of signals
with HP DCE applications.
• Be sure the application has an exception handler installed that can
field any RPC exceptions.