STREAMS/UX for the HP 9000 Reference Manual
120
Debugging STREAMS/UX Modules and Drivers
Introduction
Introduction
This chapter describes tools for debugging STREAMS/UX modules and
drivers. STREAMS/UX supports many System V tools, and provides new
ones. This chapter contains the following:
• An overview of the System V tools supported by HP-UX.
• A description of a new tool, strdb, that displays STREAMS/UX data structures
in running systems and HP-UX core dumps. Examples are included to show the
use of strdb in debugging driver and application problems.
• An in depth discussion of an HP-UX tool, adb, that helps programmers analyze
core dumps. Examples show how to use adb and strdb to debug STREAMS/UX
drivers and modules.
Other sections of this manual also contain debugging information. You
should run the strvf verification tool to check that STREAMS/UX is
properly installed before trying to debug modules and drivers. The
STREAMS/UX Synchronization section of Chapter 3 contains module and
driver programming guidelines. Read through these guidelines and the
design guidelines in Chapter 7 of the UNIX System V Release 4
Programmer’s Guide: STREAMS before testing modules and drivers.