summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-08-24 11:47:18 +0000
committerAndrew Cagney <cagney@redhat.com>2003-08-24 11:47:18 +0000
commit42cf1509a7dbf155ee0007fae9cdc7a617a26700 (patch)
tree4056e9c99b2b80f626d9ed6dc0e336d07e5d8439 /gdb/osabi.c
parent5c877b72341207b8a0d0319dc99ff79944e2871a (diff)
downloadbinutils-gdb-42cf1509a7dbf155ee0007fae9cdc7a617a26700.tar.gz
2003-08-24 Andrew Cagney <cagney@redhat.com>
* arm-tdep.c (_initialize_arm_tdep): Simplify by assuming GDB_MULTI_ARCH is always non-zero. * osabi.c (_initialize_gdb_osabi): Ditto. (gdbarch_init_osabi): Ditto. * sparc-tdep.c: Ditto for #if code.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 252129ba7f2..dbba578429d 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -319,17 +319,13 @@ gdbarch_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
}
}
- /* We assume that if GDB_MULTI_ARCH is less than GDB_MULTI_ARCH_TM
- that an ABI variant can be supported by overriding definitions in
- the tm-file. */
- if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
- fprintf_filtered
- (gdb_stderr,
- "A handler for the OS ABI \"%s\" is not built into this "
- "configuration of GDB. "
- "Attempting to continue with the default %s settings",
- gdbarch_osabi_name (info.osabi),
- bfd_printable_arch_mach (arch_info->arch, arch_info->mach));
+ fprintf_filtered
+ (gdb_stderr,
+ "A handler for the OS ABI \"%s\" is not built into this "
+ "configuration of GDB. "
+ "Attempting to continue with the default %s settings",
+ gdbarch_osabi_name (info.osabi),
+ bfd_printable_arch_mach (arch_info->arch, arch_info->mach));
}
@@ -571,8 +567,7 @@ _initialize_gdb_osabi (void)
bfd_target_elf_flavour,
generic_elf_osabi_sniffer);
- if (!GDB_MULTI_ARCH)
- return;
+ return;
/* Register the "set osabi" command. */
c = add_set_enum_cmd ("osabi", class_support, gdb_osabi_available_names,