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: Aron-Zvi <email@hidden>
- Date: Thu, 9 Jul 2009 00:11:23 +0300
I haven't tried debugging /usr/libexec/gdb/gdb-i386-apple-darwin with itself as I need the source code and I'm not sure how to set it up. I have tried debugging path_to_freshly_built_gdb/gdb with itself. This was actually the first thing I tried. The result is identical - task_for_pid() fails(returns KERN_FAILURE...) on forked child process of debuggie gdb.
On Thu, Jul 9, 2009 at 12:01 AM, Mo McRoberts
<email@hidden> wrote:
On Wed, Jul 8, 2009 at 20:42, Aron-Zvi<
email@hidden> wrote:
> I'm trying to debug gdb-966 downloaded from
opensource.apple.com. I've made
> no changes whatsoever to the code - Just downloaded and built. I'm debugging
> ( or should I say stepping through...) in order to get a better
> understanding of how gdb works on OS X.
>
> I've tried just as you've specified:
> As root:
> /usr/libexec/gdb/gdb-i386-apple-darwin --args path_to_freshly_built_gdb/gdb
> fooprogram
Out of sheer curiosity, can either
/usr/libexec/gdb/gdb-i386-apple-darwin or
path_to_freshly_built_gdb/gdb debug *themselves*?
M.
--
http://nevali.net
_______________________________________________
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