NOTE: HP WDB cannot be attached to a process that is traced by tools which use ttrace, such as Caliper, adb, and tusc. The debugger displays the following error message on attempting to attach to such a process:
Attaching to process <pid> failed.
Hint: Check if this process is already being traced by another gdb or other trace tools like caliper and tusc.
Hint: Check whether program is on an
If so, you will need to mount the file system with the "nointr" option with mount(1) or make a local copy of the program to resolve this problem.
14.4 HP-UX targets
On
•An executable that has been compiled and linked to run on
•A live
•A core file generated by an
GDB on
WDB can only debug C++ programs compiled with HP aC++, the
14.5 Support for Alternate root
HP WDB supports alternate root functionality, which is helpful when you do not want to use the
The environment variable WDB_ROOT specifies the alternate root for HP WDB. You must specify a structure similar to the default /opt/langtools used for HP WDB. You can use the environment variable GDB_ROOT to specify an alternate root for GDB.
If you specify both WDB_ROOT and GDB_ROOT, the value for GDB_ROOT is ignored.
HP WDB supports these environment variables to override the location of different component of HP WDB.
Defined Variable | /opt/langtools/ GDB_ROOT | $GDB_SERVER | |
| bin |
|
|
WDB Location | /opt/langtools/ n/a | n/a | |
GDB location | lib |
|
|
WDB_ROOT | $GDB_ROOT/bin | LIBRTC_SERVER |
14.4