* sparc-xdep.c (deferred_stores): Repair minor damage by Rich.
authorJohn Gilmore <gnu@cygnus>
Sun, 19 May 1991 12:49:37 +0000 (12:49 +0000)
committerJohn Gilmore <gnu@cygnus>
Sun, 19 May 1991 12:49:37 +0000 (12:49 +0000)
        Move deferred_stores to top of file, but don't separate its
        #define's from its variable.  Add commentary.

gdb/sparc-xdep.c

index 1bc392ba984fd82326f6034fe821b62c1803b9ab..80d4e39603b70b2011e755fac72b37581eb1d557 100644 (file)
@@ -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;
This page took 0.025003 seconds and 4 git commands to generate.