WDB supports a new -mapshared option:
Implemented the -mapshared option to suppress mapping all shared libraries
in a process private. This option enables new facilities in the
dynamic loader (patch PHSSS_33110 or later) to designate individual shared libraries
for debugging. By default, HP WDB instructs the shared library dynamic
loader, dld.sl(5), to map shared libraries in a process private,
regardless of whether the chatr command is run for a particular shlib with +dbg or not.
The -mapshared option is used to save virtual memory for debugging
applications with large amounts of code in shared libraries, on
machines with simultaneous debug sessions. The chatr+dbg option, and the _HP_DLDOPTS environment variable are used to identify shared
libraries for debugging. The -mapshared option ensures that the text segments of all other
shared libraries is shared across the system. The shared libraries
are not mapped private and cannot have breakpoints in them.
The set mapshared on command can be used to change modes from the (gdb) prompt.
The set mapshared off command can be used to load shared libraries after
the current point is mapped private.
The -mapshared option is implemented on both PA-RISC and Itanium platforms
in HP WDB 5.2. This option is provided in the WDB GUI, wdb(1), as well as HP WDB, gdb(1). The default behavior does not change if the -mapshared option for all shared libraries in processes started
under the debugger, (or dynamically loaded after an attach) are
mapped private.