hotspot Udiff src/os/solaris/vm/os_solaris.cpp (original) (raw)
@@ -5851,5 +5851,26 @@ #ifndef PRODUCT void TestReserveMemorySpecial_test() { // No tests available for this platform } #endif + +int os::Posix::unblock_signals(const sigset_t *set) {
- return sigsetmask(SIG_UNBLOCK, set, NULL); +}
- +void os::formatDebugMessage(char* buf, int buflen) {
- jio_snprintf(p, buflen,
"\n\n"
"Do you want to debug the problem?\n\n"
"To debug, run 'dbx - %d'; then switch to thread " INTX_FORMAT "\n"
"Enter 'yes' to launch dbx automatically (PATH must include dbx)\n"
"Otherwise, press RETURN to abort...",
os::current_process_id(), os::current_thread_id());
+} + +void os::startDebugging() {
- char buf[80];
- jio_snprintf(buf, buflen, "dbx - %d", os::current_process_id());
- os::fork_and_exec(buf); +}