From 69f29a86f06eaa85d889d84a2eb8c2ffa560f999 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sun, 19 May 1991 12:49:37 +0000 Subject: [PATCH] * 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. --- gdb/sparc-xdep.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/sparc-xdep.c b/gdb/sparc-xdep.c index 1bc392ba984..80d4e39603b 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; -- 2.30.2