diff src/share/vm/runtime/os.hpp @ 2302:da091bb67459

7022037: Pause when exiting if debugger is attached on windows Reviewed-by: dsamersoff, kamg, hosterda
author sla
date Mon, 28 Feb 2011 14:19:52 +0100
parents 63d374c54045
children 23ae54207126
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp	Sat Feb 26 13:33:23 2011 -0500
+++ b/src/share/vm/runtime/os.hpp	Mon Feb 28 14:19:52 2011 +0100
@@ -492,6 +492,12 @@
   static void print_location(outputStream* st, intptr_t x, bool verbose = false);
   static size_t lasterror(char *buf, size_t len);
 
+  // Determines whether the calling process is being debugged by a user-mode debugger.
+  static bool is_debugger_attached();
+
+  // wait for a key press if PauseAtExit is set
+  static void wait_for_keypress_at_exit(void);
+
   // The following two functions are used by fatal error handler to trace
   // native (C) frames. They are not part of frame.hpp/frame.cpp because
   // frame.hpp/cpp assume thread is JavaThread, and also because different