< prev index next >

src/os/bsd/vm/os_bsd.cpp

Print this page




4561              "\n\n"
4562              "Do you want to debug the problem?\n\n"
4563              "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n"
4564              "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n"
4565              "Otherwise, press RETURN to abort...",
4566              os::current_process_id(), os::current_process_id(),
4567              os::current_thread_id(), os::current_thread_id());
4568 
4569   bool yes = os::message_box("Unexpected Error", buf);
4570 
4571   if (yes) {
4572     // yes, user asked VM to launch debugger
4573     jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d",
4574                      os::current_process_id(), os::current_process_id());
4575 
4576     os::fork_and_exec(buf);
4577     yes = false;
4578   }
4579   return yes;
4580 }







4561              "\n\n"
4562              "Do you want to debug the problem?\n\n"
4563              "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n"
4564              "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n"
4565              "Otherwise, press RETURN to abort...",
4566              os::current_process_id(), os::current_process_id(),
4567              os::current_thread_id(), os::current_thread_id());
4568 
4569   bool yes = os::message_box("Unexpected Error", buf);
4570 
4571   if (yes) {
4572     // yes, user asked VM to launch debugger
4573     jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d",
4574                      os::current_process_id(), os::current_process_id());
4575 
4576     os::fork_and_exec(buf);
4577     yes = false;
4578   }
4579   return yes;
4580 }
4581 
4582 bool os::map_memory_to_file(char* base, size_t size, const char* backingFileDir) {
4583   VMError::report_and_die("Allocating object heap with backing file is not supported for BSD");
4584   return false;
4585 }
< prev index next >