This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Get rid of current_gdbarch in amd64
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Tue, 15 Jan 2008 21:40:35 +0100 (CET)
- Subject: Re: [rfc] Get rid of current_gdbarch in amd64
Markus Deuling wrote:
> * 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.
This is OK as well.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com