Remove dead code in regcache::dump
authorYao Qi <yao.qi@linaro.org>
Fri, 24 Nov 2017 14:58:45 +0000 (14:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 24 Nov 2017 14:59:02 +0000 (14:59 +0000)
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.

gdb/ChangeLog
gdb/regcache.c

index aecd85b2f34fb1d059544c178c783b3a400caa42..bec84337099a2fe94cdd31699b48b795bed1b3fd 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-24  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (regcache::dump): Remove footnote_register_size.
+
 2017-11-24  Yao Qi  <yao.qi@linaro.org>
 
        * regcache.c (cooked_read_test): Add more test for readonly
index e82176b202cf63806a26980c78b9ea495362316b..ac905c6e49e194e1abb3d8429ba374416e796063 100644 (file)
@@ -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);
This page took 0.032775 seconds and 4 git commands to generate.