From 09424cff8c26073312e0bdc342989a955c766e31 Mon Sep 17 00:00:00 2001 From: Andreas Arnez Date: Tue, 13 May 2014 11:05:57 +0000 Subject: Remove 'arch' field from regset structure. Removes the 'arch' field from the regset structure, since it represents the only "dynamic" data in a regset. It was referenced in some regset supply- and collect routines, to get access to the gdbarch associated with the regset. Naturally, the affected routines always have access to the regcache to be supplied to or collected from. Thus the gdbarch associated with that regcache can be used instead. --- gdb/regset.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/regset.h') diff --git a/gdb/regset.h b/gdb/regset.h index fe804cc295d..f1a6e241d96 100644 --- a/gdb/regset.h +++ b/gdb/regset.h @@ -50,9 +50,6 @@ struct regset /* Function collecting values in a register set from a register cache. */ collect_regset_ftype *collect_regset; - - /* Architecture associated with the register set. */ - struct gdbarch *arch; }; /* Allocate a fresh 'struct regset' whose supply_regset function is -- cgit v1.2.1