[rfc] Replace some current_gdbarchs in *ppc*

Markus Deuling deuling@de.ibm.com
Fri Feb 15 11:02:00 GMT 2008


Hi,

this patch replaces some current_gdbarchs in *ppc* targets. I tested this patch on PowerPC without regression.
As I do not have an OpenBSD on PowerPC machine here maybe someone of you has and is willing to test
it native?

Thanks a lot!

Is this patch ok to commit ?

ChangeLog:

	* rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
	and replace current_gdbarch by gdbarch.

	(store_register): Update call for exec_one_dummy_insn.
	(fetch_register, store_register): Update call of regmap.

	* ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
	parameter and replace current_gdbarch by gdbarch.
	
	(ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
	the current architecture. Update call for getregs_supplies and
	getfpregs_supplies.
	(ppcnbsd_fetch_inferior_registers): Likewise.

	* ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and 
	replace current_gdbarch by gdbarch.
	(ppcobsd_fetch_registers, ppcobsd_store_registers): Use
	get_regcache_arch to get at the current architecture. Update call for
	getfpregs_supplies.



Regards,
Markus

-- 
  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-ppc
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080215/60617bad/attachment.ksh>


More information about the Gdb-patches mailing list