JDK-6684007 : PrintAssembly plugin not available for linux or windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-04-03
  • Updated: 2017-09-28
  • Resolved: 2011-03-07
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
6u18Fixed 7Fixed hs16Fixed
Description
Upon integration of 6667042, we will need disassembler plugins for all our platforms.

Currently the plugin builds only on Solaris.  It needs to build and work properly on Linux and Windows also.

Here's a reference to the patch file for the fix to 6667042:
http://webrev.invokedynamic.info/jrose/6667042/hs-6667042.patch

Only the files in src/share/tools/hsdis need adjustment.

(Alternatively, a different implementation could be created for the missing platforms.)

Here's a reference to the PrintAssembly feature:
http://wikis.sun.com/display/HotSpotInternals/PrintAssembly

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/67a2f5ba5582
15-04-2009

SUGGESTED FIX diff -r c7c777385a15 src/share/tools/hsdis/Makefile --- a/src/share/tools/hsdis/Makefile Wed Apr 02 12:09:59 2008 -0700 +++ b/src/share/tools/hsdis/Makefile Thu Apr 03 09:11:31 2008 -0700 @@ -49,6 +49,7 @@ CCFLAGS/sparcv9 += -xarch=v9 CCFLAGS/sparcv9 += -xarch=v9 CCFLAGS += $(CCFLAGS/$(LIBARCH)) DLDFLAGS += -G +LDFLAGS += -ldl OUTFLAGS += -o $@ LIB_EXT = .so else @@ -66,6 +67,7 @@ CC = gcc CC = gcc CCFLAGS += -O DLDFLAGS += -shared +LDFLAGS += -ldl OUTFLAGS += -o $@ LIB_EXT = .so CPPFLAGS += -Iinclude -Iinclude/$(OS)_$(ARCH)/ diff -r c7c777385a15 src/share/tools/hsdis/hsdis.c --- a/src/share/tools/hsdis/hsdis.c Wed Apr 02 12:09:59 2008 -0700 +++ b/src/share/tools/hsdis/hsdis.c Thu Apr 03 09:11:31 2008 -0700 @@ -33,6 +33,7 @@ #include <libiberty.h> #include <bfd.h> #include <dis-asm.h> +#include <inttypes.h> #ifndef bool #define bool int
03-04-2008