From: Ulrich Weigand Date: Mon, 20 Jul 2009 19:41:34 +0000 (+0000) Subject: * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4290e2a0cc9281b3fdecba69a9a224559e38d47;p=binutils-gdb.git * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT if the macro is defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fccad0b66f0..b3f386c387d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-07-20 Ulrich Weigand + + * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT + if the macro is defined. + 2009-07-20 Pedro Alves * features/gdb-target.dtd (target): Accept an optional 'osabi' diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 458aa062190..f3246eb0baa 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -717,8 +717,10 @@ gdbarch_info_fill (struct gdbarch_info *info) if (info->osabi == GDB_OSABI_UNKNOWN && info->target_desc != NULL) info->osabi = tdesc_osabi (info->target_desc); /* From the configured default. */ +#ifdef GDB_OSABI_DEFAULT if (info->osabi == GDB_OSABI_UNKNOWN) info->osabi = GDB_OSABI_DEFAULT; +#endif /* Must have at least filled in the architecture. */ gdb_assert (info->bfd_arch_info != NULL);