提交 05ea7b01 编写于 作者: S sla

Merge

...@@ -707,8 +707,8 @@ JNF_COCOA_ENTER(env); ...@@ -707,8 +707,8 @@ JNF_COCOA_ENTER(env);
task_t gTask = 0; task_t gTask = 0;
result = task_for_pid(mach_task_self(), jpid, &gTask); result = task_for_pid(mach_task_self(), jpid, &gTask);
if (result != KERN_SUCCESS) { if (result != KERN_SUCCESS) {
print_error("attach: task_for_pid(%d) failed (%d)\n", (int)jpid, result); 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"); 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); putTask(env, this_obj, gTask);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册