Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
set print object, show print
object
Choose whether to print derived (actual) or declared types
of objects. See “Print settings” (page 63).
set print vtbl, show print
vtbl
Control the format for printing virtual function tables. See
“Print settings” (page 63). (The vtbl commands do not
work on programs compiled with the HP aC++ compiler
(aCC).)
set overload-resolution on Enable overload resolution for C++ expression evaluation.
The default is on. For overloaded functions, GDB evaluates
the arguments and searches for a function whose signature
matches the argument types, using the standard C++
conversion rules (see “C++ expressions” (page 77), for
details). If it cannot find a match, it emits a message.
set overload-resolution off Disable overload resolution for C++ expression evaluation.
For overloaded functions that are not class member functions,
GDB chooses the first function of the specified name that it
finds in the symbol table, whether or not its arguments are
of the correct type. For overloaded functions that are class
member functions, GDB searches for a function whose
signature exactly matches the argument types.
show overload-resolution Display current overload resolution setting for C++
expression evaluation.
Overloaded symbolnames You can specify a particular definition of an overloaded
symbol, using the same notation that is used to declare such
symbols in C++: type symbol (types) rather than just
symbol. You can also use the GDB command-line word
completion facilities to list the available choices, or to finish
the type list for you. See “Command completion” (page 24),
for details on how to do this.
Fortran
You can use HP WDB to debug programs written in Fortran. HP WDB does not distinguish between
Fortran 77 and Fortran 90 files.
HP WDB provides the following command to control case sensitivity:
case-sensitive [on | off] The default for Fortran is off while for other languages the
default is on.
Other supported features are:
• Fortran 90 pointers
• Structures and unions
• Calling functions with integer, logical, real, complex arguments
• Intrinsic support
Fortran types
Fortran types supported:
integer*1, integer*2,
integer*4, integer*8
• allocatable
• assumed-size
logical*1, logical*2,
• assumed-shape
logical*4, logical*8 byte,
real*4, real*8, real*16
• adjustable
complex*8, complex*16
Supported languages 79