This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] use gdbarch_addr_bits_remove for entry point address


This version is OK, but please fix up the ChangeLog entry.

> 2012-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
> 	    Kazu Hirata  <kazu@codesourcery.com>
> 	    Yao Qi  <yao@codesourcery.com>
> 
> 	* objfiles.c (entry_point_address_query): Move some code ...
> 	(init_entry_point_info): ... here.

Please be more specific:

 	* objfiles.c (entry_point_address_query): Call
	gdbarch_convert_from_func_ptr_addr and gdbarch_addr_bits_remove
	here ...
 	(init_entry_point_info): ... instead of here.

That's more useful for archaeology.

> 	* solib-svr4.c (exec_entry_point): Likewise.

"Likewise" here doesn't make sense.  Perhaps:

 	* solib-svr4.c (exec_entry_point): Call gdbarch_addr_bits_remove.

> 	* symfile.c (generic_load): Call gdbarch_addr_bits_remove on
> 	the entry address.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]