[rfc] Get rid of current_gdbarch in amd64
Markus Deuling
deuling@de.ibm.com
Fri Jan 11 17:13:00 GMT 2008
Hi,
this patch removes all but one remaining occurence of current_gdbarch in AMD64 targets.
I dont have access to an AMD64 machine. Maybe someone from this list has and could do a testrun
with this patch to see if there are regressions? Thanks a lot.
Would this be ok to commit?
ChangeLog:
* amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
parameter.
* amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
(amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch. Update caller.
* amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
(amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
the current architecture. Update calls of
amd64_native_gregset_supplies_p.
* amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
(amd64bsd_store_inferior_registers): Likewise.
--
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-amd64
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080111/11d1d0b9/attachment.ksh>
More information about the Gdb-patches
mailing list