HP (Hewlett-Packard) 5992-1918 Manual Do Utilizador

Página de 78
1.4 gcore
The gcore command creates a core image of a running process. By default, the name of the core
file for a process-id will be core.process-id. The process information in the core image can be
obtained by using gdb or other debuggers.
When gcore creates a core image of each specified process, the process is temporarily stopped.
When the creation of the core image is complete, the process continues to execute.
This command is only available on HP-UX 11.31.
1.5 gdb
Java stack unwind enhancements have been added to gdb to enable it to support unwinding
across Java frames and provide 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 following table shows which Java versions on PA-RISC and Integrity systems have the stack
unwind and the gdb Java subcommands features. These features are available in gdb version
4.5 and later versions.
Table 1-8 Java Version Information for gdb Java VM Debugging Features
GDB Version
Java Subcommands
Stack Unwind
Enhancements
Platform
4.5+
SDK 1.4.1.05+
SDK 1.3.1.02+
PA-RISC 32-bit
-pa11
(PA_RISC)
4.5+
SDK 1.4.1.05+
SDK 1.3.1.02+
PA-RISC 32-bit
(PA_RISC2.0)
4.5+
SDK 1.4.1.05+
SDK 1.4.1.01+
PA-RISC 64-bit
(PA_RISC2.0W)
4.5–5.2
SDK 1.4.1.05+
SDK 1.3.1.06+
Integrity 32-bit
(IA64N)
4.5–5.2
SDK 1.4.1.05+
SDK 1.4.0.01+
Integrity 64-bit
(IA64W)
*5.3+
SDK 1.4.2.10+
SDK 1.4.2.10+
Integrity 32
(IA64N), 64-bit
(IA64W)
*5.3+
JDK 1.5.0.03+
JDK 1.5.0.03+
Integrity 32
(IA64N), 64-bit
(IA64W)
*gdb version 5.3 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. The default location of the Java unwind library on
various systems is shown following. The examples are for SDK 1.4; if you are using JDK 1.5,
substitute /opt/java1.5 for /opt/java1.4.
/opt/java1.4/jre/lib/PA_RISC/server/libjunwind.sl  
/opt/java1.4/jre/lib/PA_RISC2.0/server/libjunwind.sl  
/opt/java1.4/jre/lib/PA_RISC2.0W/server/libjunwind.sl  
/opt/java1.4/jre/lib/IA64N/server/libjunwind.so  
/opt/java1.4/jre/lib/IA64W/server/libjunwind.so  
Following are a few examples. If you are using ksh on a PA-RISC machine, this is how you set
the environment variable for a 32–bit Java application:
export GDB_JAVA_UNWINDLIB=/opt/java1.4/jre/lib/PA_RISC2.0/server/libjunwind.sl
18
Diagnostic and Monitoring Tools and Options