hotspot/src/os/windows/vm/os_windows.cpp
changeset 43438 af4378756105
parent 42066 46f6db750b17
child 46476 8ead62daaa47
equal deleted inserted replaced
43437:90e15b78684e 43438:af4378756105
   775   // See: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
   775   // See: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
   776   //
   776   //
   777   // Note that unfortunately this only works if the process
   777   // Note that unfortunately this only works if the process
   778   // is already attached to a debugger; debugger must observe
   778   // is already attached to a debugger; debugger must observe
   779   // the exception below to show the correct name.
   779   // the exception below to show the correct name.
       
   780 
       
   781   // If there is no debugger attached skip raising the exception
       
   782   if (!IsDebuggerPresent()) {
       
   783     return;
       
   784   }
   780 
   785 
   781   const DWORD MS_VC_EXCEPTION = 0x406D1388;
   786   const DWORD MS_VC_EXCEPTION = 0x406D1388;
   782   struct {
   787   struct {
   783     DWORD dwType;     // must be 0x1000
   788     DWORD dwType;     // must be 0x1000
   784     LPCSTR szName;    // pointer to name (in user addr space)
   789     LPCSTR szName;    // pointer to name (in user addr space)