HP (Hewlett-Packard) 5992-4701 Computer Hardware User Manual


 
2. Attach gdb to the running process:
$ gdb -p 23989
HP gdb 5.0 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.0 (based on GDB) is covered by the
GNU General Public License.Type "show copying" to see the con-
ditions to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
Reading symbols from /opt/java1.4/bin/IA64N/java...
(no debugging symbols found)...done.
Attaching to program: /opt/java1.4/bin/IA64N/java, process 23989
(no debugging symbols found)...
Reading symbols from /usr/lib/hpux32/libpthread.so.1...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/hpux32/libdl.so.1...
...
NOTE: If the version of gdb on the system is older than version 4.5, it will be necessary
to specify the full path of the Java executable in order to use the gdb subcommands.
For example: gdb /opt/java1.4/bin/PA_RISC2.0/java p 23989
14.25.2 Enhanced support for C++ templates
This version of HP WDB includes these features to support C++ templates:
Setting breakpoints in template class functions and template functions without
having to specify details about the instantiation.
The ptype command shows any one of the class instantiations.
A option -v in ptype command will now display the field offset and size information
of a struct/union/class in addition to the default type information.
Syntax:
(gdb) ptype -v struct info
type = struct info /* off 0 bits, len 512 bits */
int i;
/* off 0 bits, len 32 bits */
char a[20];
/* off 32 bits, len 160 bits */
struct details d;
/* off 192 bits, len 256 bits */
int b : 2;
/* off 448 bits, len 2 bits */
int c : 3;
/* off 450 bits, len 3 bits */
< filler >
14.25 Language support 221