1786 strcpy(buf, saved_jvm_path); |
1786 strcpy(buf, saved_jvm_path); |
1787 return; |
1787 return; |
1788 } |
1788 } |
1789 |
1789 |
1790 buf[0] = '\0'; |
1790 buf[0] = '\0'; |
1791 if (strcmp(Arguments::sun_java_launcher(), "gamma") == 0) { |
1791 if (Arguments::created_by_gamma_launcher()) { |
1792 // Support for the gamma launcher. Check for an |
1792 // Support for the gamma launcher. Check for an |
1793 // JAVA_HOME environment variable |
1793 // JAVA_HOME environment variable |
1794 // and fix up the path so it looks like |
1794 // and fix up the path so it looks like |
1795 // libjvm.so is installed there (append a fake suffix |
1795 // libjvm.so is installed there (append a fake suffix |
1796 // hotspot/libjvm.so). |
1796 // hotspot/libjvm.so). |
3416 _setmode(_fileno(stdout), _O_BINARY); |
3416 _setmode(_fileno(stdout), _O_BINARY); |
3417 _setmode(_fileno(stderr), _O_BINARY); |
3417 _setmode(_fileno(stderr), _O_BINARY); |
3418 } |
3418 } |
3419 |
3419 |
3420 |
3420 |
|
3421 bool os::is_debugger_attached() { |
|
3422 return IsDebuggerPresent() ? true : false; |
|
3423 } |
|
3424 |
|
3425 |
|
3426 void os::wait_for_keypress_at_exit(void) { |
|
3427 if (PauseAtExit) { |
|
3428 fprintf(stderr, "Press any key to continue...\n"); |
|
3429 fgetc(stdin); |
|
3430 } |
|
3431 } |
|
3432 |
|
3433 |
3421 int os::message_box(const char* title, const char* message) { |
3434 int os::message_box(const char* title, const char* message) { |
3422 int result = MessageBox(NULL, message, title, |
3435 int result = MessageBox(NULL, message, title, |
3423 MB_YESNO | MB_ICONERROR | MB_SYSTEMMODAL | MB_DEFAULT_DESKTOP_ONLY); |
3436 MB_YESNO | MB_ICONERROR | MB_SYSTEMMODAL | MB_DEFAULT_DESKTOP_ONLY); |
3424 return result == IDYES; |
3437 return result == IDYES; |
3425 } |
3438 } |