summaryrefslogtreecommitdiffstats
path: root/gdb/configure.tgt
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-01-04 23:47:13 +0000
committerDaniel Jacobowitz <drow@false.org>2003-01-04 23:47:13 +0000
commitb00a80374277fa498c6c38b79688e798f486219f (patch)
tree291a8fb672cc8ec8373d13f2c4fe609611753f7b /gdb/configure.tgt
parent4be87837a23001df36ca5a4171eb01dec22856e1 (diff)
downloadppe42-binutils-b00a80374277fa498c6c38b79688e798f486219f.tar.gz
ppe42-binutils-b00a80374277fa498c6c38b79688e798f486219f.zip
* Makefile.in (acconfig_h): Remove incorrect macro.
(config_h): Define. (osabi.o): Update dependencies. * configure.tgt: Set gdb_osabi based on target triplet. * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi. * configure: Regenerated. * config.in: Regenerated. * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h". (GDB_OSABI_DEFAULT): Define if not already defined. (user_osabi_state, user_selected_osabi, gdb_osabi_available_names) (set_osabi_string): New variables. (gdbarch_register_osabi): Add new OS ABI to gdb_osabi_available_names. (gdbarch_lookup_osabi): Honor specified and default OS ABIs. (set_osabi, show_osabi): New functions. (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
Diffstat (limited to 'gdb/configure.tgt')
-rw-r--r--gdb/configure.tgt7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index ed213dcbda..76b9b12578 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -281,3 +281,10 @@ v850) gdb_multi_arch=yes ;;
xstormy16) gdb_multi_arch=yes ;;
mcore) gdb_multi_arch=yes ;;
esac
+
+# map target onto default OS ABI
+
+case "${target}" in
+*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
+*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
+esac
OpenPOWER on IntegriCloud