[ppc64-linux] gdbarch hook to find true execution entry point

Andrew Cagney ac131313@redhat.com
Fri Jun 13 23:38:00 GMT 2003


> 2003-06-11  Jim Blandy  <jimb@redhat.com>
>> 
>> 	* gdbarch.sh (gdbarch_bfd_entry_point): New gdbarch method.
>> 	* arch-utils.c (generic_bfd_entry_point): New function.
>> 	* arch-utils.h (generic_bfd_entry_point): New declaration.
>> 	* gdbarch.c, gdbarch.h: Regenerated.
>> 	* solib-svr4.c (enable_break): Call it, instead of accessing
>> 	tmp_bfd->start_address directly.
> 
> 
> The solib-svr4.c change is okay with me.  If you can get Andrew on board
> for the gdbarch changes, you're good to go.  If you wind up implementing
> it in bfd, consider the solib change to be pre-approved.

I'm still struggling to differentiate gdbarch_bfd_entry_point, 
entry_point_address(), CALL_DUMMY_ADDRESS, and now 
CONVERT_FROM_FUNC_PTR_ADDR.

I need to re-read the threads.

(And I've even got the original PowerOpen spec at home!)

Andrew




More information about the Gdb-patches mailing list