2002-08-15 Andrew Cagney <ac131313@redhat.com>

* gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
Add `args' parameter.
* gdbarch.h, gdbarch.c: Regenerate.

* arm-tdep.c (arm_print_float_info): Add the parameter `args'.

* infcmd.c (float_info): Call print_float_info.
(print_float_info): New function.  By default, print the
floating-point registers.

* arch-utils.h (default_print_float_info): Delete declaration.
* arch-utils.c (default_print_float_info): Delete function.
This commit is contained in:
Andrew Cagney
2002-08-15 23:41:20 +00:00
parent 8de397a5ad
commit 23e3a7ac79
8 changed files with 69 additions and 30 deletions

View File

@@ -250,21 +250,6 @@ default_double_format (struct gdbarch *gdbarch)
}
}
void
default_print_float_info (struct gdbarch *gdbarch, struct ui_file *file,
struct frame_info *frame)
{
#ifdef FLOAT_INFO
#if GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL
#error "FLOAT_INFO defined in multi-arch"
#endif
FLOAT_INFO;
#else
fprintf_filtered (file, "\
No floating point info available for this processor.\n");
#endif
}
/* Misc helper functions for targets. */
int