Re: Using gdb to step through gdb in os x leopard
Re: Using gdb to step through gdb in os x leopard
- Subject: Re: Using gdb to step through gdb in os x leopard
- From: Jonas Maebe <email@hidden>
- Date: Wed, 8 Jul 2009 12:47:27 +0200
On 08 Jul 2009, at 12:43, Aron-Zvi wrote:
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:
sudo chgrp procamod gdb
chmod 2755 gdb
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden