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/gdbarch.h | |
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/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index ae96ded..ffde4df 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -775,6 +775,23 @@ extern void set_gdbarch_do_registers_info (struct gdbarch *gdbarch, gdbarch_do_r #endif #endif +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (PRINT_FLOAT_INFO) +#define PRINT_FLOAT_INFO() (default_print_float_info ()) +#endif + +typedef void (gdbarch_print_float_info_ftype) (void); +extern void gdbarch_print_float_info (struct gdbarch *gdbarch); +extern void set_gdbarch_print_float_info (struct gdbarch *gdbarch, gdbarch_print_float_info_ftype *print_float_info); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (PRINT_FLOAT_INFO) +#error "Non multi-arch definition of PRINT_FLOAT_INFO" +#endif +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (PRINT_FLOAT_INFO) +#define PRINT_FLOAT_INFO() (gdbarch_print_float_info (current_gdbarch)) +#endif +#endif + /* MAP a GDB RAW register number onto a simulator register number. See also include/...-sim.h. */ |