Fail gdb configure if target is not supported.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 15 Mar 2010 17:03:03 +0000 (17:03 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 15 Mar 2010 17:03:03 +0000 (17:03 +0000)
        * configure.ac: Exit if ${gdb_target_obs}" is not set.
        * configure: Regenerate.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 766408d02e9a837752b9e1d09350a606f9d89a28..3c73dd2bfca3992e14f814a2763935b7f8ba04b4 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
+
+       * configure.ac: Exit if ${gdb_target_obs}" is not set.
+       * configure: Regenerate.
+
 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
index 6b0599331aaf4ea4527e90f3f4fff94eb4519c76..0f3d7e6932e9bd506e3f202b9110881a4c6c19f6 100755 (executable)
@@ -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
index 5e77f59c37443571b50773bb74faa9ce95964e5a..434c5b4da9e0c469aadc4a1ab46cf12884c8412d 100644 (file)
@@ -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