src/share/vm/runtime/os.hpp
Print this page
rev 2110 : [mq]: is-debugger-present
@@ -490,10 +490,13 @@
static void print_date_and_time(outputStream* st);
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();
+
// 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
// OS/compiler may have different convention or provide different API to
// walk C frames.