Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
Use the steps below to attach GDB to HP 9000 application process under ARIES on
HP-UX 11i Integrity servers:
Perform the same preparatory steps as required for debugging an HP 9000 HP-UX
application using GDB under ARIES on HP-UX 11i Integrity server.
Invoke GDB as follows:
gdb <pa_process_name> <pa_process_name>
You can also invoke GDB through any of the attach modes supported by GDB using
the -pid <pa_pid> option or by issuing the attach <pa_pid> command at
the gdb prompt
After the debugging, the process can continue or abort, as specified by the user. This
feature is especially useful when triaging problems in an environment with a large number
of processes and a mix of Integrity native and HP 9000 processes.
14.31.3 Detecting memory leaks using GDB under ARIES
Applications cannot leak memory under ARIES unless they do so on HP 9000 servers.
HP GDB can be used to detect memory leaks of HP 9000 applications under ARIES.
Refer to HP GDB documentation for more details.
14.32 Visual Interface for HP WDB
HP WDB includes an HP-supported Visual Interface for HP WDB with both graphical and
terminal modes. The interface is based on Vim 5.7 and HP WDB. This interface replaces
the -tui mode on Itanium-based systems.
When you use the interface you are actually using vim, which is a vi-compatible editor.
With the interface you can use vi commands to browse in the HP WDB display.
Most of Visual Interface for HP WDB functionality is also available for emacs users. Visual
Interface for HP WDB does not require knowledge of vi commands.
Visual Interface for HP WDB identifies you as an emacs user by looking at the environment
variable `$EDITOR'. If this variable has a value that matches emacs, or gmacs, or xemacs,
then Visual Interface for HP WDB starts in emacs mode automatically.
234 HP-UX Configuration-Specific Information