Remove code wrapped by "#if 0"
authorYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:41 +0000 (15:15 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 2 Nov 2017 15:15:41 +0000 (15:15 +0000)
These code wrapped by "#if 0" was added by af030b9a, which added the new
command to dump registers in 2002.  The email didn't mention this either
https://sourceware.org/ml/gdb-patches/2002-08/msg00227.html  It was there
for 15 years, and nobody needs it, so we can remove it.

gdb:

2017-11-02  Yao Qi  <yao.qi@linaro.org>

* regcache.c (regcache::dump): Remove code.

gdb/ChangeLog
gdb/regcache.c

index 5f9bf3bb320d4ba9832e3e94d4824281cfe4f024..bb22304c56835c28bfd3f45d406464dfd1ccafa5 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (regcache::dump): Remove code.
+
 2017-11-02  Yao Qi  <yao.qi@linaro.org>
 
        * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
index 5a1152e9b8ae4bc7dca831d50a35a68a74310977..0d3fe3d11f1aaab833bf937b22326293ac6c01b4 100644 (file)
@@ -1330,21 +1330,6 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump)
   int footnote_register_type_name_null = 0;
   long register_offset = 0;
 
-#if 0
-  fprintf_unfiltered (file, "nr_raw_registers %d\n",
-                     m_descr->nr_raw_registers);
-  fprintf_unfiltered (file, "nr_cooked_registers %d\n",
-                     m_descr->nr_cooked_registers);
-  fprintf_unfiltered (file, "sizeof_raw_registers %ld\n",
-                     m_descr->sizeof_raw_registers);
-  fprintf_unfiltered (file, "sizeof_raw_register_status %ld\n",
-                     m_descr->nr_raw_registers);
-  fprintf_unfiltered (file, "gdbarch_num_regs %d\n", 
-                     gdbarch_num_regs (gdbarch));
-  fprintf_unfiltered (file, "gdbarch_num_pseudo_regs %d\n",
-                     gdbarch_num_pseudo_regs (gdbarch));
-#endif
-
   gdb_assert (m_descr->nr_cooked_registers
              == (gdbarch_num_regs (gdbarch)
                  + gdbarch_num_pseudo_regs (gdbarch)));