Remove h8300_print_float_info
authorYao Qi <yao@codesourcery.com>
Thu, 18 Dec 2014 12:47:27 +0000 (20:47 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 18 Dec 2014 12:47:27 +0000 (20:47 +0800)
In infcmd.c:print_float_info, if the architecture doesn't have gdbarch
method print_float_info implemented and doesn't float reggroup, GDB
will prints "No floating-point info available for this processor."
The h8300 port doesn't have float registers, and don't need to
implement print_float_info.  This patch is to remove it.

gdb:

2014-12-18  Yao Qi  <yao@codesourcery.com>

* h8300-tdep.c (h8300_print_float_info): Remove.
(h8300_gdbarch_init): Remove the call to
set_gdbarch_print_float_info.

gdb/ChangeLog
gdb/h8300-tdep.c

index 4c87d955c5e6b173526665d08a868a9c054ca2ee..102b9e34dd6fa57070726430daa8da28450b8ea4 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-18  Yao Qi  <yao@codesourcery.com>
+
+       * h8300-tdep.c (h8300_print_float_info): Remove.
+       (h8300_gdbarch_init): Remove the call to
+       set_gdbarch_print_float_info.
+
 2014-12-18  Doug Evans  <xdje42@gmail.com>
 
        * infcmd.c (jump_command): Minor simplification.
index 0f58553d955581152c20aff07e6f311b8782f3af..cd2b344f98398245ce63db28c79e63ca7e83e442 100644 (file)
@@ -1256,14 +1256,6 @@ h8300_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr,
   return breakpoint;
 }
 
-static void
-h8300_print_float_info (struct gdbarch *gdbarch, struct ui_file *file,
-                       struct frame_info *frame, const char *args)
-{
-  fprintf_filtered (file, "\
-No floating-point info available for this processor.\n");
-}
-
 static struct gdbarch *
 h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 {
@@ -1375,7 +1367,6 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_pc_regnum (gdbarch, E_PC_REGNUM);
   set_gdbarch_register_type (gdbarch, h8300_register_type);
   set_gdbarch_print_registers_info (gdbarch, h8300_print_registers_info);
-  set_gdbarch_print_float_info (gdbarch, h8300_print_float_info);
 
   /*
    * Frame Info
This page took 0.033166 seconds and 4 git commands to generate.