--- old/src/share/vm/runtime/os.hpp 2011-02-25 10:00:10.895859900 +0100 +++ new/src/share/vm/runtime/os.hpp 2011-02-25 10:00:10.534839300 +0100 @@ -492,6 +492,9 @@ 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