aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-11-02 15:15:41 +0000
committerYao Qi <yao.qi@linaro.org>2017-11-02 15:15:41 +0000
commit2e1b49b32ab9aec1aca94f424cbe275e5f6f9ab4 (patch)
treeef24cff0f23a0b46b90d2c9671e8df2a831b2298 /gdb
parent6c5218dfdb7b38cc1617be7753cc1ec6d0612382 (diff)
downloadgdb-2e1b49b32ab9aec1aca94f424cbe275e5f6f9ab4.zip
gdb-2e1b49b32ab9aec1aca94f424cbe275e5f6f9ab4.tar.gz
gdb-2e1b49b32ab9aec1aca94f424cbe275e5f6f9ab4.tar.bz2
Remove code wrapped by "#if 0"
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/regcache.c15
2 files changed, 4 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5f9bf3b..bb22304 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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>:
Remove.
<sizeof_cooked_register_status>: Remove.
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 5a1152e..0d3fe3d 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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)));