[PATCH, ppc64] Fix stepping into calls via thunk
Pedro Alves
palves@redhat.com
Wed Jun 5 14:57:00 GMT 2013
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.)
--
Pedro Alves
More information about the Gdb-patches
mailing list