From: John Gilmore Date: Sun, 19 May 1991 12:49:37 +0000 (+0000) Subject: * sparc-xdep.c (deferred_stores): Repair minor damage by Rich. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=69f29a86f06eaa85d889d84a2eb8c2ffa560f999;hp=d39a9543a62589843967f7dddb61054c1e4e3369;p=deliverable%2Fbinutils-gdb.git * sparc-xdep.c (deferred_stores): Repair minor damage by Rich. Move deferred_stores to top of file, but don't separate its #define's from its variable. Add commentary. --- diff --git a/gdb/sparc-xdep.c b/gdb/sparc-xdep.c index 1bc392ba98..80d4e39603 100644 --- a/gdb/sparc-xdep.c +++ b/gdb/sparc-xdep.c @@ -37,6 +37,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ extern char register_valid[]; +/* We don't store all registers immediately when requested, since they + get sent over in large chunks anyway. Instead, we accumulate most + of the changes and send them over once. "deferred_stores" keeps + track of which sets of registers we have locally-changed copies of, + so we only need send the groups that have changed. */ + +#define INT_REGS 1 +#define STACK_REGS 2 +#define FP_REGS 4 + int deferred_stores = 0; /* Cumulates stores we want to do eventually. */ /* Fetch one or more registers from the inferior. REGNO == -1 to get @@ -130,10 +140,6 @@ fetch_inferior_registers (regno) If REGNO is -1, do this for all registers. Otherwise, REGNO specifies which register (so we can save time). */ -#define INT_REGS 1 -#define STACK_REGS 2 -#define FP_REGS 4 - int store_inferior_registers (regno) int regno;