Using gdb to step through gdb in os x leopard
Using gdb to step through gdb in os x leopard
- Subject: Using gdb to step through gdb in os x leopard
- From: Aron-Zvi <email@hidden>
- Date: Wed, 8 Jul 2009 04:34:12 +0300
Hey guys,
I've downloaded and built the most recent gdb available at
opensource.apple.com - gdb-966.
I'm running OS X Leopard 10.5.7.
I'm stepping through gdb with gdb like so: gdb --args ./gdb fooprogram
gdb fails in macosx_ptrace_him() following the task_for_pid() call. task_for_pid() returns 5 which i believe is KERN_FAILURE. The message displayed in the debugger is "Unable to find Mach task port for process-id 8455".
When I run just ./gdb fooprogram - everything works fine.
gdb's gid is set to procmod. Furthermore, I've even tried running gdb as root with identical results.
How can I use gdb to step through gdb debugging another process?
Your help is most appreciated,
Aron-Zvi
_______________________________________________
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