aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-11-24 14:58:45 +0000
committerYao Qi <yao.qi@linaro.org>2017-11-24 14:59:02 +0000
commite8d58cbaacb9ca54ad32eee1a38301202e09f878 (patch)
treeed5851166478e70aa2ce833e9b343dc63263c7a2 /gdb/regcache.c
parent650444eb540f9fd85e821567a3f943b4bc41b8be (diff)
downloadgdb-e8d58cbaacb9ca54ad32eee1a38301202e09f878.zip
gdb-e8d58cbaacb9ca54ad32eee1a38301202e09f878.tar.gz
gdb-e8d58cbaacb9ca54ad32eee1a38301202e09f878.tar.bz2
Remove dead code in regcache::dump
footnote_register_size in regcache::dump is a constant zero, so the condition check against footnote_register_size is dead code. The code writing to footnote_register_size was removed by 01e1877. This patche removes footnote_register_size and the dead code. gdb: 2017-11-24 Yao Qi <yao.qi@linaro.org> * regcache.c (regcache::dump): Remove footnote_register_size.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index e82176b..ac905c6 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1327,7 +1327,6 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump)
struct gdbarch *gdbarch = m_descr->gdbarch;
int regnum;
int footnote_nr = 0;
- int footnote_register_size = 0;
int footnote_register_offset = 0;
int footnote_register_type_name_null = 0;
long register_offset = 0;
@@ -1539,9 +1538,6 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump)
fprintf_unfiltered (file, "\n");
}
- if (footnote_register_size)
- fprintf_unfiltered (file, "*%d: Inconsistent register sizes.\n",
- footnote_register_size);
if (footnote_register_offset)
fprintf_unfiltered (file, "*%d: Inconsistent register offsets.\n",
footnote_register_offset);