[Patch] Exit gdb/configure.tgt for unsupported targets

Ralf Corsepius
2010-02-24T10:56:53Z

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Hi,

The patch below (against 7.0.90) is meant to address the issues I
reported in
http://sourceware.org/ml/gdb/2010-02/msg00140.html

Ralf

[-- Attachment #2: gdb-7.0.90-gdb-configure.tgt.diff --]
[-- Type: text/plain, Size: 530 bytes --]

2010-02-23 Ralf CorsÃ©pius <ralf.corsepius@rtems.org>

* configure.tgt: Exit if ${gdb_target_obs}" is not set.

diff -Naur gdb-7.0.90.orig/gdb/configure.tgt gdb-7.0.90/gdb/configure.tgt
--- gdb-7.0.90.orig/gdb/configure.tgt 2010-01-19 11:22:42.000000000 +0100
+++ gdb-7.0.90/gdb/configure.tgt 2010-02-23 05:43:01.000000000 +0100
@@ -611,6 +611,11 @@

esac

+if test -z "${gdb_target_obs}"; then
+ echo "*** Configuration ${targ} is unsupported." >&2
+ exit 1
+fi
+
# map target onto default OS ABI

case "${targ}" in