2007-10-30 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index 59891de97c1e6b3968e4131699fa15a585300ba1..da613d0398f34edd464731efeae532c6ea225658 100644 (file)
@@ -8,7 +8,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -17,9 +17,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street, Fifth Floor,
-   Boston, MA 02110-1301, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
 #include "regcache.h"
@@ -37,7 +35,9 @@ inf_child_fetch_inferior_registers (struct regcache *regcache, int regnum)
 {
   if (regnum == -1)
     {
-      for (regnum = 0; regnum < gdbarch_num_regs (current_gdbarch); regnum++)
+      for (regnum = 0;
+          regnum < gdbarch_num_regs (get_regcache_arch (regcache));
+          regnum++)
        regcache_raw_supply (regcache, regnum, NULL);
     }
   else
This page took 0.0236 seconds and 4 git commands to generate.