diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-06 13:00:49 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-06 13:00:49 +0000 |
commit | 5e74b15c0d46e80dfff4d265dfb82340631fcfb8 (patch) | |
tree | 171564bb7e9580ffca8480f190b877e1d07c8c89 /gdb/arch-utils.c | |
parent | a8ec2177956f36babd9f08ca67ac3f2974240baf (diff) | |
download | gdb-5e74b15c0d46e80dfff4d265dfb82340631fcfb8.zip gdb-5e74b15c0d46e80dfff4d265dfb82340631fcfb8.tar.gz gdb-5e74b15c0d46e80dfff4d265dfb82340631fcfb8.tar.bz2 |
* gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
* gdbarch.c gdbarch.h: Regenerate.
* arch-utils.c (default_print_float_info): New function.
* arch-utils.h (default_print_float_info): Prototype it.
* infcmd.c (float_info): Call PRINT_FLOAT_INFO.
* doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
(PRINT_FLOAT_INFO): Document it.
* arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
* config/arm/tm-arm.h (FLOAT_INFO): Delete.
(PRINT_FLOAT_INFO): Define.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index a01fb4e..5612ddf 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -225,6 +225,19 @@ default_double_format (struct gdbarch *gdbarch) } } +void +default_print_float_info (void) +{ +#ifdef FLOAT_INFO +#if GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL +#error "FLOAT_INFO defined in multi-arch" +#endif + FLOAT_INFO; +#else + printf_filtered ("No floating point info available for this processor.\n"); +#endif +} + /* Misc helper functions for targets. */ int |