United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7152671 RFE: Windows decoder should add some std dirs to the symbol search path
JDK-7152671 : RFE: Windows decoder should add some std dirs to the symbol search path

Details
Type:
Enhancement
Submit Date:
2012-03-09
Status:
Closed
Updated Date:
2014-06-26
Project Name:
JDK
Resolved Date:
2013-01-09
Component:
hotspot
OS:
windows
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs25 (b16)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
During a recent discussion about the Full Debug Symbols (FDS) project,
Tom and I noticed that the current version of the decoder on Windows
does not look in the JDK directory that contains a library's .dll for
symbols.

The Windows SymSetSearchPath() API can be used to do this:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681368%28v=vs.85%29.aspx.

The Windows decoder should add the following directories to the
symbol search path:

    $JAVA_HOME/lib
    $JAVA_HOME/jre/lib
    $JAVA_HOME/jre/bin/client
    $JAVA_HOME/jre/bin/server

If it is possible to determine the path the JVM library it
would be better to add that directory rather than assume
that JVM library we are running is either from jre/bin/client
or jre/bin/server.

                                    

Comments
From Dan's email:

Yes. I keep forgetting that Windows keeps libraries in the "bin"
directory rather than in a "lib" directory like a "normal" system. :-)
So when I filed the bug, I wrote:

> The Windows decoder should add the following directories to the
> symbol search path:
>
>     $JAVA_HOME/lib
>     $JAVA_HOME/jre/lib
>     $JAVA_HOME/jre/bin/client
>     $JAVA_HOME/jre/bin/server

In the above list, both "lib" names should be "bin". 
                                     
2013-01-09
URL:   http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/dd7248d3e151
User:  zgu
Date:  2013-01-09 22:21:12 +0000

                                     
2013-01-09
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/dd7248d3e151
User:  amurillo
Date:  2013-01-18 16:07:01 +0000

                                     
2013-01-18



Hardware and Software, Engineered to Work Together