diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-20 19:41:34 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-20 19:41:34 +0000 |
commit | f4290e2a0cc9281b3fdecba69a9a224559e38d47 (patch) | |
tree | 4fed9739b5c3e1c40aa788035e366db4960d6f62 /gdb/arch-utils.c | |
parent | 08d1664121e7855d2477854ff1473e82d1731044 (diff) | |
download | gdb-f4290e2a0cc9281b3fdecba69a9a224559e38d47.zip gdb-f4290e2a0cc9281b3fdecba69a9a224559e38d47.tar.gz gdb-f4290e2a0cc9281b3fdecba69a9a224559e38d47.tar.bz2 |
* arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
if the macro is defined.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 458aa06..f3246eb 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); |