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

Table Of Contents
NOTE: HP WDB will not support:
Command line calls of intrinsic functions(Mathematical functions like cos, sin, log
etc)
Decimal Floating Point data type support for Fortran and C++
HP-UX 11iv2 Integrity and HP 9000 systems
14.25 Additional Support for binary floating point data type
14.25.1 Support for Binary Floating Point constants f, l
If the binary floating point constant contains the letter f or l then HP WDB recognizes it
as float or long double binary floating point constant. Generally a floating point constant
without f or l is considered as double binary floating point constant.
(gdb) p <num><f/l>
This prints the binary floating point constant depending upon its data type.
14.25.2 Support Binary Floating Point variables with format specifier
HP WDB versions 5.9 and later provide the following format specifiers for binary floating
point variables, which print the variables in the specified binary floating point format:
(gdb) p/f <var-name>
This prints the binary floating point value as oat.
(gdb) p/db <var-name>
This prints the binary floating point value as double.
(gdb) p/l <var-name>
This prints the binary floating point value as long double.
14.26 Language support
14.26.1 Enhanced Java Debugging Support
HP WDB shows stack traces of mixed Java, C, and C++ programs. It supports unwinding
across Java frames and provides an effective way to examine stack traces containing
mixed language frames (Java and C/C++) of both live Java processes and core files.
This has been implemented by adding subcommands for Java VM debugging to gdb.
The stack trace functionality requires Java SDK version 1.3.1.02 or later versions, for
HP-UX. To find the availability of Java SDK version 1.3.1.02 or later, go to the HP web
site for Java, http://www.hp.com/go/java. Java stack unwind and the gdb Java
subcommands features are available in gdb version 4.5 and later versions. From gdb
version 5.3 and later versions, it requires SDK 1.4.2.10 and later versions, or JDK
1.5.0.03 and later versions in order to use the Java VM debugging features.
14.25 Additional Support for binary floating point data type 217