mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* 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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user