hotspot/src/os/windows/vm/vmError_windows.cpp
changeset 34305 e399e6b44631
parent 33105 294e48b4f704
child 35176 11a9d4022d9e
--- a/hotspot/src/os/windows/vm/vmError_windows.cpp	Wed Nov 18 22:00:09 2015 +0000
+++ b/hotspot/src/os/windows/vm/vmError_windows.cpp	Wed Nov 25 16:33:28 2015 +0100
@@ -28,38 +28,6 @@
 #include "runtime/thread.hpp"
 #include "utilities/vmError.hpp"
 
-
-void VMError::show_message_box(char *buf, int buflen) {
-  bool yes;
-  do {
-    error_string(buf, buflen);
-    int len = (int)strlen(buf);
-    char *p = &buf[len];
-
-    jio_snprintf(p, buflen - len,
-               "\n\n"
-               "Do you want to debug the problem?\n\n"
-               "To debug, attach Visual Studio to process %d; then switch to thread 0x%x\n"
-               "Select 'Yes' to launch Visual Studio automatically (PATH must include msdev)\n"
-               "Otherwise, select 'No' to abort...",
-               os::current_process_id(), os::current_thread_id());
-
-    yes = os::message_box("Unexpected Error", buf) != 0;
-
-    if (yes) {
-      // yes, user asked VM to launch debugger
-      //
-      // os::breakpoint() calls DebugBreak(), which causes a breakpoint
-      // exception. If VM is running inside a debugger, the debugger will
-      // catch the exception. Otherwise, the breakpoint exception will reach
-      // the default windows exception handler, which can spawn a debugger and
-      // automatically attach to the dying VM.
-      os::breakpoint();
-      yes = false;
-    }
-  } while (yes);
-}
-
 int VMError::get_resetted_sigflags(int sig) {
   return -1;
 }