Debugging with GDB (February 2008)

Table Of Contents
Chapter 14: HP-UX Configuration-Specific Information 177
(gdb) set mapshared off
The -mapshared option is implemented on both PA-RISC and Itanium platforms in
HP WDB 5.2. This option is provided in the WDB GUI and HP WDB. The default
behavior does not change if the -mapshared option for all shared libraries in processes
started under the debugger, or dynamically loaded after an attach, are mapped private.
14.20.6 Setting breakpoints in shared library
Breakpoints can be set on functions in a shared library, by specifying the library name
with the function name.
(gdb) b libutil.sl:fun Breakpoint 1 at 0x79a86228: file simple.c,
line 13 from /CLO/Components/WDB/build/hppa1.1-hp-hpux11.00/gdb/
simple_shared/lib.sl
14.21 Language support
14.21.1 Enhanced Java Debugging Support
The following commands have been added to enhance Java debugging support:
backtrace
Prints backtrace of mixed Java and native frames. Standard backtrace
command of GDB has been enhanced to work with mixed Java and native
stack frames.
info frame
Prints Java frame specific information for a Java frame. Standard frame
command of GDB has been enhanced to interpret a Java stack frame.
info threads
Prints state information for Java threads.
thread Prints detailed state information for the current Java thread.
14.21.2 Commands for Examining Java Virtual Machine(JVM)
internals
The following commands can be used to obtain information on Java VM internals:
help java
Prints list of Java and JVM debugging commands
java Prints list of java subcommands
14.21.2.1 Java subcommands
The following Java subcommands have been added: