[PATCH, ppc64] Fix stepping into calls via thunk

Luis Machado lgustavo@codesourcery.com
Wed Jun 5 20:44:00 GMT 2013


On 06/05/2013 04:56 PM, Pedro Alves wrote:
> On 06/04/2013 10:34 PM, Luis Machado wrote:
>
>> For ppc64, though, what GDB thinks is the address of the real function isn't really the address of the function, but a pointer to a function descriptor. We need to fetch the real function's address from that descriptor.
>>
>> This patch does exactly that, and it is very simple.
>
> Looks right to me, though I'm no ppc expert.
>
>> The use of current_target made me scratch my head a little. I seem to recall we dropped further uses of this variable in the past, but this hook still seems to require the target_ops to be passed. Is this OK?
>
> That's fine.  See solib-svr4.c for the uses that need to pass in
> something else.  (You'll end up in bfd-target.c.)
>

Ah, thanks for confirming that.

I've checked it in now.

Luis



More information about the Gdb-patches mailing list