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: Esteban Bodigami <email@hidden>
- Date: Tue, 7 Jul 2009 20:21:24 -0600
first of all, gdb stands for what exactly? "g" database? IMO, it looks like a configuration at runtime that can help your fooprogram return no errors... like a "display no errors" flag (assumming it is text/CLI-only software).
.../7/7 Aron-Zvi
<email@hidden>
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
_______________________________________________
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