4538 "\n\n" 4539 "Do you want to debug the problem?\n\n" 4540 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n" 4541 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n" 4542 "Otherwise, press RETURN to abort...", 4543 os::current_process_id(), os::current_process_id(), 4544 os::current_thread_id(), os::current_thread_id()); 4545 4546 bool yes = os::message_box("Unexpected Error", buf); 4547 4548 if (yes) { 4549 // yes, user asked VM to launch debugger 4550 jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d", 4551 os::current_process_id(), os::current_process_id()); 4552 4553 os::fork_and_exec(buf); 4554 yes = false; 4555 } 4556 return yes; 4557 } | 4538 "\n\n" 4539 "Do you want to debug the problem?\n\n" 4540 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n" 4541 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n" 4542 "Otherwise, press RETURN to abort...", 4543 os::current_process_id(), os::current_process_id(), 4544 os::current_thread_id(), os::current_thread_id()); 4545 4546 bool yes = os::message_box("Unexpected Error", buf); 4547 4548 if (yes) { 4549 // yes, user asked VM to launch debugger 4550 jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d", 4551 os::current_process_id(), os::current_process_id()); 4552 4553 os::fork_and_exec(buf); 4554 yes = false; 4555 } 4556 return yes; 4557 } 4558 4559 int os::create_file_for_heap(const char* dir, size_t size) { 4560 VMError::report_and_die("Allocating object heap with backing file is not supported for BSD"); 4561 return false; 4562 } 4563 4564 bool os::map_memory_to_file(char* base, size_t size, int file_desc) { 4565 VMError::report_and_die("Allocating object heap with backing file is not supported for BSD"); 4566 return false; 4567 } |