United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7023323 : Build failure on VS2003: IsDebuggerPresent not found

Details
Type:
Bug
Submit Date:
2011-03-01
Status:
Closed
Updated Date:
2011-04-24
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
windows
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs21 (b04)

Related Reports
Backport:

Sub Tasks

Description
The fix for "7022037: Pause when exiting if debugger is attached on windows" introduced a dependency on IsDebuggerPresent() in the windows API. This requires _WIN32_WINNT to be defined with value oc 0x400 or higher which is not the case in VS2003.

                                    

Comments
SUGGESTED FIX

In os_windows.cpp:
#define _WIN32_WINNT 0x500

This is already defined for 64-bit targets, but can also be defined for 32-bit targets. 0x500 corresponds to the Windows 2000 API.
*** (#1 of 1): [ UNSAVED ] ###@###.###
                                     
2011-03-01
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/5584e20db481
                                     
2011-03-02
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/5584e20db481
                                     
2011-03-04
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/5584e20db481
                                     
2011-03-04



Hardware and Software, Engineered to Work Together