JDK-6485088 : GDB can't work with jvmg version of libjvm.so on Linux AMD 64 platform
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2006-10-23
  • Updated: 2012-10-08
  • Resolved: 2006-11-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
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.

EVALUATION Change make file to use "-g" as the DEBUG_CFLGAGS.