*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / user-regs.c
index 2d7c71d74d36f35f73f3129285007abc49fe2253..9762a787d535feb58e15883b1e7e3e32d7e28ecb 100644 (file)
@@ -1,6 +1,7 @@
 /* User visible, per-frame registers, for GDB, the GNU debugger.
 
-   Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2007, 2008, 2009
+   Free Software Foundation, Inc.
 
    Contributed by Red Hat.
 
@@ -154,8 +155,8 @@ user_reg_map_name_to_regnum (struct gdbarch *gdbarch, const char *name,
        if ((len < 0 && strcmp (reg->name, name))
            || (len == strlen (reg->name)
                && strncmp (reg->name, name, len) == 0))
-         return gdbarch_num_regs (current_gdbarch)
-                + gdbarch_num_pseudo_regs (current_gdbarch) + nr;
+         return gdbarch_num_regs (gdbarch)
+                + gdbarch_num_pseudo_regs (gdbarch) + nr;
       }
   }
 
This page took 0.02341 seconds and 4 git commands to generate.