* arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
if the macro is defined.
This commit is contained in:
parent
08d1664121
commit
f4290e2a0c
@ -1,3 +1,8 @@
|
||||
2009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
|
||||
if the macro is defined.
|
||||
|
||||
2009-07-20 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* features/gdb-target.dtd (target): Accept an optional 'osabi'
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user