Re: Using gdb to step through gdb in os x leopard
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 08 Jul 2009, at 12:43, Aron-Zvi wrote: sudo chgrp procamod gdb chmod 2755 gdb Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I've tried running the entire thing as root by switching with su before running the command. I've even tried logging in as root. gdb --args ./gdb fooprogram as root still results in "Unable to find Mach task port for process-id *pid_of_ fooprogram *(os/kern) failure (0x5)" in the debugee gdb when attempting to run fooprogram. Once again, this happens in macosx_ptrace_him() after task_for_pid() . I guess you compiled that gdb yourself. On Mac OS X 10.5.x, gdb has to be owned by the procmod group and have mode 2755 to have the appropriate rights to trace other programs. I.e., after compiling gdb, do the following: This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe