Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
This converts double data type (1.2) to _Decimal64 data type and performs addition operation
with _Decimal64 data type (1.2dd) and prints value in _Decimal64 type. HP WDB handles
exceptions such as overflow, infinity and division by zero for Decimal Floating Point data type.
(gdb) print 1.2dd / 0
(gdb) inf
HP WDB handles finite, infinite and NaN(Not a Number) values of decimal floating point data
type.
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.
In order to use this functionality, the GDB_JAVA_UNWINDLIB environment variable must be set to
the path name of the Java unwind library. This environment variable must be set for normal java
debugging and java corefile debugging. The default location of the Java unwind library on various
14.25 Additional Support for binary floating point data type 171