aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-xdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-19 12:49:37 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-19 12:49:37 +0000
commit69f29a86f06eaa85d889d84a2eb8c2ffa560f999 (patch)
tree0e9284719cdbfd0eab617d589b5bc3e1ba363160 /gdb/sparc-xdep.c
parentd39a9543a62589843967f7dddb61054c1e4e3369 (diff)
downloadgdb-69f29a86f06eaa85d889d84a2eb8c2ffa560f999.zip
gdb-69f29a86f06eaa85d889d84a2eb8c2ffa560f999.tar.gz
gdb-69f29a86f06eaa85d889d84a2eb8c2ffa560f999.tar.bz2
* 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.
Diffstat (limited to 'gdb/sparc-xdep.c')
-rw-r--r--gdb/sparc-xdep.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/sparc-xdep.c b/gdb/sparc-xdep.c
index 1bc392b..80d4e39 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;