From bf3071347e9457f11d04706163ebfc0bb7965de8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 15 Mar 2010 17:03:03 +0000 Subject: [PATCH] Fail gdb configure if target is not supported. * configure.ac: Exit if ${gdb_target_obs}" is not set. * configure: Regenerate. --- gdb/ChangeLog | 5 +++++ gdb/configure | 4 ++++ gdb/configure.ac | 3 +++ 3 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 766408d..3c73dd2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-25 Ralf Corsepius + + * configure.ac: Exit if ${gdb_target_obs}" is not set. + * configure: Regenerate. + 2010-03-15 Jan Kratochvil * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" diff --git a/gdb/configure b/gdb/configure index 6b05993..0f3d7e6 100755 --- a/gdb/configure +++ b/gdb/configure @@ -6927,6 +6927,10 @@ do . ${srcdir}/configure.tgt + if test -z "${gdb_target_obs}"; then : + as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5 +fi + # Target-specific object files for i in ${gdb_target_obs}; do case " $TARGET_OBS " in diff --git a/gdb/configure.ac b/gdb/configure.ac index 5e77f59..434c5b4 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -161,6 +161,9 @@ do . ${srcdir}/configure.tgt + AS_IF([test -z "${gdb_target_obs}"], + [AC_MSG_ERROR([configuration ${targ} is unsupported.])]) + # Target-specific object files for i in ${gdb_target_obs}; do case " $TARGET_OBS " in -- 2.7.4