[rfc] [01/12] Get rid of current_gdbarch in aix-thread.c
Eli Zaretskii
eliz@gnu.org
Fri Aug 3 13:26:00 GMT 2007
> Date: Fri, 03 Aug 2007 15:01:15 +0200
> From: Markus Deuling <deuling@de.ibm.com>
> CC: gdb-patches@sourceware.org, uweigand@de.ibm.com
>
> >> * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
> >> (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
> >> (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
> >> (store_regs_user_thread, store_regs_kernel_thread): Use FRAME or
> >> REGCACHE to recognize current architecture.
> >
> > What are FRAME and REGCACHE here? They are not variables nor macros
> > seen in the patches.
> >
>
> sorry for being unprecise. What I meant is for example REGCACHE parameter here:
>
> static void
> supply_gprs64 (struct regcache *regcache, uint64_t *vals)
> {
> struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
> int regno;
>
> So current_gdbarch can be replaced by get_regcache_arch (regcache).
In that case, I'd prefer to rephrase the log entry as follows:
Use get_regcache_arch or get_frame_arch to get at the current
architecture by regcache or by frame, respectively.
More information about the Gdb-patches
mailing list