* gdbarch.sh: Allow a non- multi-arch target to override a

predicate.
* gdbarch.h: Regenerate.
This commit is contained in:
Andrew Cagney 2001-03-21 19:47:44 +00:00
parent b77be6cfae
commit eee30e78fd
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-03-21 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: Allow a non- multi-arch target to override a
predicate.
* gdbarch.h: Regenerate.
2001-03-21 Andrew Cagney <ac131313@redhat.com> 2001-03-21 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: Avoid use of ``!''. * gdbarch.sh: Avoid use of ``!''.

View File

@ -623,8 +623,10 @@ extern void set_gdbarch_register_sim_regno (struct gdbarch *gdbarch, gdbarch_reg
#if defined (REGISTER_BYTES_OK) #if defined (REGISTER_BYTES_OK)
/* Legacy for systems yet to multi-arch REGISTER_BYTES_OK */ /* Legacy for systems yet to multi-arch REGISTER_BYTES_OK */
#if !defined (REGISTER_BYTES_OK_P)
#define REGISTER_BYTES_OK_P() (1) #define REGISTER_BYTES_OK_P() (1)
#endif #endif
#endif
/* Default predicate for non- multi-arch targets. */ /* Default predicate for non- multi-arch targets. */
#if (!GDB_MULTI_ARCH) && !defined (REGISTER_BYTES_OK_P) #if (!GDB_MULTI_ARCH) && !defined (REGISTER_BYTES_OK_P)
@ -1310,8 +1312,10 @@ extern void set_gdbarch_frame_num_args (struct gdbarch *gdbarch, gdbarch_frame_n
#if defined (STACK_ALIGN) #if defined (STACK_ALIGN)
/* Legacy for systems yet to multi-arch STACK_ALIGN */ /* Legacy for systems yet to multi-arch STACK_ALIGN */
#if !defined (STACK_ALIGN_P)
#define STACK_ALIGN_P() (1) #define STACK_ALIGN_P() (1)
#endif #endif
#endif
/* Default predicate for non- multi-arch targets. */ /* Default predicate for non- multi-arch targets. */
#if (!GDB_MULTI_ARCH) && !defined (STACK_ALIGN_P) #if (!GDB_MULTI_ARCH) && !defined (STACK_ALIGN_P)
@ -1352,8 +1356,10 @@ extern void set_gdbarch_extra_stack_alignment_needed (struct gdbarch *gdbarch, i
#if defined (REG_STRUCT_HAS_ADDR) #if defined (REG_STRUCT_HAS_ADDR)
/* Legacy for systems yet to multi-arch REG_STRUCT_HAS_ADDR */ /* Legacy for systems yet to multi-arch REG_STRUCT_HAS_ADDR */
#if !defined (REG_STRUCT_HAS_ADDR_P)
#define REG_STRUCT_HAS_ADDR_P() (1) #define REG_STRUCT_HAS_ADDR_P() (1)
#endif #endif
#endif
/* Default predicate for non- multi-arch targets. */ /* Default predicate for non- multi-arch targets. */
#if (!GDB_MULTI_ARCH) && !defined (REG_STRUCT_HAS_ADDR_P) #if (!GDB_MULTI_ARCH) && !defined (REG_STRUCT_HAS_ADDR_P)
@ -1381,8 +1387,10 @@ extern void set_gdbarch_reg_struct_has_addr (struct gdbarch *gdbarch, gdbarch_re
#if defined (SAVE_DUMMY_FRAME_TOS) #if defined (SAVE_DUMMY_FRAME_TOS)
/* Legacy for systems yet to multi-arch SAVE_DUMMY_FRAME_TOS */ /* Legacy for systems yet to multi-arch SAVE_DUMMY_FRAME_TOS */
#if !defined (SAVE_DUMMY_FRAME_TOS_P)
#define SAVE_DUMMY_FRAME_TOS_P() (1) #define SAVE_DUMMY_FRAME_TOS_P() (1)
#endif #endif
#endif
/* Default predicate for non- multi-arch targets. */ /* Default predicate for non- multi-arch targets. */
#if (!GDB_MULTI_ARCH) && !defined (SAVE_DUMMY_FRAME_TOS_P) #if (!GDB_MULTI_ARCH) && !defined (SAVE_DUMMY_FRAME_TOS_P)

View File

@ -668,8 +668,10 @@ do
printf "#if defined (${macro})\n" printf "#if defined (${macro})\n"
printf "/* Legacy for systems yet to multi-arch ${macro} */\n" printf "/* Legacy for systems yet to multi-arch ${macro} */\n"
#printf "#if (GDB_MULTI_ARCH <= GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n" #printf "#if (GDB_MULTI_ARCH <= GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
printf "#if !defined (${macro}_P)\n"
printf "#define ${macro}_P() (1)\n" printf "#define ${macro}_P() (1)\n"
printf "#endif\n" printf "#endif\n"
printf "#endif\n"
printf "\n" printf "\n"
printf "/* Default predicate for non- multi-arch targets. */\n" printf "/* Default predicate for non- multi-arch targets. */\n"
printf "#if (!GDB_MULTI_ARCH) && !defined (${macro}_P)\n" printf "#if (!GDB_MULTI_ARCH) && !defined (${macro}_P)\n"