United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6684007 PrintAssembly plugin not available for linux or windows
JDK-6684007 : PrintAssembly plugin not available for linux or windows

Details
Type:
Bug
Submit Date:
2008-04-03
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
hotspot
OS:
generic
Sub-Component:
svc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs16 (b02)

Related Reports
Backport:
Backport:

Sub Tasks

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
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
                                     
2008-04-03
EVALUATION

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



Hardware and Software, Engineered to Work Together