United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6485088 GDB can't work with jvmg version of libjvm.so on Linux AMD 64 platform
JDK-6485088 : GDB can't work with jvmg version of libjvm.so on Linux AMD 64 platform

Details
Type:
Bug
Submit Date:
2006-10-23
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2006-11-14
Component:
hotspot
OS:
linux
Sub-Component:
runtime
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b03)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
Currently hotspot uses -gstabs as DEBUG_CFLAGS to generate the full debug version of libjvm.so which we also call it as jvmg version. This won't work with gdb on linux amd64 platform since linux amd64 doesn't support stubs debuggable format. We should just change it to use "-g" and let the gcc compiler to decide which format to use. We should do the same thing on x86 as well, however, that will generate very large libjvm.so file (around 150 M) and stabs works well currently with gdb on linux x86, we can keep it as is. But in the future, we should change it to use "-g" even on x86 platforms.

Since PRT does not build jvmg version of libjvm.so for linux amd64, so size won't be a concern.

                                    

Comments
EVALUATION

Change make file to use "-g" as the DEBUG_CFLGAGS.
                                     
2006-10-23



Hardware and Software, Engineered to Work Together