comparison src/os/linux/vm/vmError_linux.cpp @ 2044:06f017f7daa7

Merge.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Fri, 07 Jan 2011 18:18:08 +0100
parents 2f644f85485d
children c3e799c37717
comparison
equal deleted inserted replaced
1942:00bc9eaf0e24 2044:06f017f7daa7
1 /* 1 /*
2 * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 # include "incls/_precompiled.incl" 25 #include "precompiled.hpp"
26 # include "incls/_vmError_linux.cpp.incl" 26 #include "runtime/arguments.hpp"
27 #include "runtime/os.hpp"
28 #include "runtime/thread.hpp"
29 #include "utilities/vmError.hpp"
27 30
28 #include <sys/types.h> 31 #include <sys/types.h>
29 #include <sys/wait.h> 32 #include <sys/wait.h>
30 #include <sys/syscall.h> 33 #include <sys/syscall.h>
31 #include <unistd.h> 34 #include <unistd.h>
39 char *p = &buf[len]; 42 char *p = &buf[len];
40 43
41 jio_snprintf(p, buflen - len, 44 jio_snprintf(p, buflen - len,
42 "\n\n" 45 "\n\n"
43 "Do you want to debug the problem?\n\n" 46 "Do you want to debug the problem?\n\n"
44 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT "\n" 47 "To debug, run 'gdb /proc/%d/exe %d'; then switch to thread " INTX_FORMAT " (" INTPTR_FORMAT ")\n"
45 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n" 48 "Enter 'yes' to launch gdb automatically (PATH must include gdb)\n"
46 "Otherwise, press RETURN to abort...", 49 "Otherwise, press RETURN to abort...",
47 os::current_process_id(), os::current_process_id(), 50 os::current_process_id(), os::current_process_id(),
48 os::current_thread_id()); 51 os::current_thread_id(), os::current_thread_id());
49 52
50 yes = os::message_box("Unexpected Error", buf); 53 yes = os::message_box("Unexpected Error", buf);
51 54
52 if (yes) { 55 if (yes) {
53 // yes, user asked VM to launch debugger 56 // yes, user asked VM to launch debugger