Re: Is this chain of calls possible?
Re: Is this chain of calls possible?
- Subject: Re: Is this chain of calls possible?
- From: William Kucharski <email@hidden>
- Date: Wed, 18 Jan 2006 11:57:04 -0700
On Wednesday, January 18, 2006, at 09:40AM, Stephane Sudre <email@hidden> wrote:
>(gdb) x/i 0x000A9894
>0xa9894 <Call_continuation+20>: mfsprg r3,1
>
>(gdb) x/i 0x0011D2C8
>0x11d2c8 <dlil_detach_filter+152>: mr. r31,r29
>
>(gdb) x/i 0x0011D668
>0x11d668 <dlil_input_packet+236>: mr. r30,r3
Remember also that the addresses in a traceback are the addresses the code will return
TO when the called routine returns.
To see the actual calling instruction, you need to (on PPC) look at the address in the
traceback - 4, e.g.:
x/i 0x0011D668-4
This gets much uglier on x86, as Intel instructions are of variable length so there's no
easy way to calculate just how many bytes back the previous instruction started... :-(
William Kucharski
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden