diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-14 17:26:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-14 17:26:35 +0000 |
commit | cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577 (patch) | |
tree | 972c4c9384119417bd131068cddf58a69f768fd9 /gdb/gdbarch.h | |
parent | b9d26eb9b8ee2ef2eab0bad4b0d9ed98a5cc378f (diff) | |
download | gdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.zip gdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.tar.gz gdb-cd0bfa36f3fbd866d7fe90b48d5f800d6c0d1577.tar.bz2 |
2004-02-14 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* arch-utils.c (deprecated_register_convertible_not): Delete.
* arch-utils.h (deprecated_register_convertible_not): Delete.
* mi/mi-main.c (get_register): Update. Update copyright.
* infcmd.c (default_print_registers_info): Update.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 57c293a..d6b7b58 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1209,6 +1209,21 @@ extern void set_gdbarch_deprecated_get_saved_register (struct gdbarch *gdbarch, /* For register <-> value conversions, replaced by CONVERT_REGISTER_P et.al. For raw <-> cooked register conversions, replaced by pseudo registers. */ +#if defined (DEPRECATED_REGISTER_CONVERTIBLE) +/* Legacy for systems yet to multi-arch DEPRECATED_REGISTER_CONVERTIBLE */ +#if !defined (DEPRECATED_REGISTER_CONVERTIBLE_P) +#define DEPRECATED_REGISTER_CONVERTIBLE_P() (1) +#endif +#endif + +extern int gdbarch_deprecated_register_convertible_p (struct gdbarch *gdbarch); +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_REGISTER_CONVERTIBLE_P) +#error "Non multi-arch definition of DEPRECATED_REGISTER_CONVERTIBLE" +#endif +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (DEPRECATED_REGISTER_CONVERTIBLE_P) +#define DEPRECATED_REGISTER_CONVERTIBLE_P() (gdbarch_deprecated_register_convertible_p (current_gdbarch)) +#endif + typedef int (gdbarch_deprecated_register_convertible_ftype) (int nr); extern int gdbarch_deprecated_register_convertible (struct gdbarch *gdbarch, int nr); extern void set_gdbarch_deprecated_register_convertible (struct gdbarch *gdbarch, gdbarch_deprecated_register_convertible_ftype *deprecated_register_convertible); |