[rfc] [06/09] Get rid of current_gdbarch (trivial replacements)

Markus Deuling deuling@de.ibm.com
Mon Nov 5 12:23:00 GMT 2007


Hi,

this patches replaces some occurences if current_gdbarch by appropriate methods.

Tested with gdb_mbuild. Ok to commit? 


ChangeLog:

	* shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
	get_regcache_arch to get at the current architecture by regcache.
	* xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
	to get at the current architecture by frame_info.
	* fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
	at the current architecture by regcache.
	* gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
	the current architecture by frame_info.
	(build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
	* aix-thread.c (special_register_p): Add gdbarch as parameter.
	(fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
	caller of special_register_p.

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com






-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-trivial
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071105/ee60e23f/attachment.ksh>


More information about the Gdb-patches mailing list