Merge
authorsla
Wed, 01 May 2013 01:07:50 +0200
changeset 17089 9b20b5491512
parent 17087 f0b76c4c93a0 (current diff)
parent 17088 75082f0d93f2 (diff)
child 17091 795686a22bc6
child 17092 8d0bef547de9
child 17099 6ee7444da39c
child 17119 3e2f3125348e
Merge
--- a/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m	Tue Apr 30 11:56:52 2013 -0700
+++ b/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m	Wed May 01 01:07:50 2013 +0200
@@ -707,8 +707,8 @@
   task_t gTask = 0;
   result = task_for_pid(mach_task_self(), jpid, &gTask);
   if (result != KERN_SUCCESS) {
-    print_error("attach: task_for_pid(%d) failed (%d)\n", (int)jpid, result);
-    THROW_NEW_DEBUGGER_EXCEPTION("Can't attach to the process");
+    print_error("attach: task_for_pid(%d) failed: '%s' (%d)\n", (int)jpid, mach_error_string(result), result);
+    THROW_NEW_DEBUGGER_EXCEPTION("Can't attach to the process. Could be caused by an incorrect pid or lack of privileges.");
   }
   putTask(env, this_obj, gTask);