Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index 3566331c67514b01dcd6c48879caf318fa8190ab..a712613f082c7390ed872a0456f5d3052a3a0655 100644 (file)
@@ -1,6 +1,6 @@
 /* Base/prototype target for default child (native) targets.
 
-   Copyright (C) 1988-2015 Free Software Foundation, Inc.
+   Copyright (C) 1988-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -77,7 +77,7 @@ inf_child_fetch_inferior_registers (struct target_ops *ops,
   if (regnum == -1)
     {
       for (regnum = 0;
-          regnum < gdbarch_num_regs (get_regcache_arch (regcache));
+          regnum < gdbarch_num_regs (regcache->arch ());
           regnum++)
        regcache_raw_supply (regcache, regnum, NULL);
     }
This page took 0.026555 seconds and 4 git commands to generate.