4573 "\n\n" 4574 "Do you want to debug the problem?\n\n" 4575 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n" 4576 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n" 4577 "Otherwise, press RETURN to abort...", 4578 os::current_process_id(), os::current_process_id(), 4579 os::current_thread_id(), os::current_thread_id()); 4580 4581 bool yes = os::message_box("Unexpected Error", buf); 4582 4583 if (yes) { 4584 // yes, user asked VM to launch debugger 4585 jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d", 4586 os::current_process_id(), os::current_process_id()); 4587 4588 os::fork_and_exec(buf); 4589 yes = false; 4590 } 4591 return yes; 4592 } | 4573 "\n\n" 4574 "Do you want to debug the problem?\n\n" 4575 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n" 4576 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n" 4577 "Otherwise, press RETURN to abort...", 4578 os::current_process_id(), os::current_process_id(), 4579 os::current_thread_id(), os::current_thread_id()); 4580 4581 bool yes = os::message_box("Unexpected Error", buf); 4582 4583 if (yes) { 4584 // yes, user asked VM to launch debugger 4585 jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d", 4586 os::current_process_id(), os::current_process_id()); 4587 4588 os::fork_and_exec(buf); 4589 yes = false; 4590 } 4591 return yes; 4592 } 4593 4594 int os::create_file_for_heap(const char* dir, size_t size) { 4595 VMError::report_and_die("Allocating object heap with backing file is not supported for BSD"); 4596 return false; 4597 } 4598 4599 bool os::map_memory_to_file(char* base, size_t size, int file_desc) { 4600 VMError::report_and_die("Allocating object heap with backing file is not supported for BSD"); 4601 return false; 4602 } |