]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make the last few reggroup changes compile.
authorDaniel Jacobowitz <drow@false.org>
Fri, 31 Mar 2006 18:14:46 +0000 (18:14 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 31 Mar 2006 18:14:46 +0000 (18:14 +0000)
gdb/available.c

index e30a776a8c5447af59355306516509a455850122..488984ca04f9a06f1f088e0c29d4cdb6bcdfad11 100644 (file)
@@ -698,7 +698,7 @@ available_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
   reg = find_register (gdbarch_feature_set (gdbarch), regnum);
   if (reg != NULL && reg->group != NULL)
     {
-      int general_p, float_p, vector_p;
+      int general_p = 0, float_p = 0, vector_p = 0;
 
       if (strcmp (reg->group, "general") == 0)
        general_p = 1;
@@ -717,7 +717,8 @@ available_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
        return general_p;
     }
 
-  if (reg != NULL && (group == save_reggroup || group == restore_reggroup))
+  if (reg != NULL
+      && (reggroup == save_reggroup || reggroup == restore_reggroup))
     return reg->save_restore;
 
   return default_register_reggroup_p (gdbarch, regnum, reggroup);