aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-04-11 16:53:01 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-04-11 16:53:01 +0000
commitc96b3c4f35f054fc87dc6aaf3d7e0c21499ae13f (patch)
tree12ee4d90cb5741e96764efd02f905d1d705f7f5e
parentb292c7831823605b02a564b0a9274f95141c92ee (diff)
downloadfsf-binutils-gdb-c96b3c4f35f054fc87dc6aaf3d7e0c21499ae13f.zip
fsf-binutils-gdb-c96b3c4f35f054fc87dc6aaf3d7e0c21499ae13f.tar.gz
fsf-binutils-gdb-c96b3c4f35f054fc87dc6aaf3d7e0c21499ae13f.tar.bz2
gdb/
Fix parsing tabs in ${gdb_target_obs}. * configure.tgt (gdb_have_gcore): Replace case with for and if.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/configure.tgt12
2 files changed, 8 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0e65461..eaf9d04 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -22,6 +22,9 @@
* gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
and GCORE_TRANSFORM_NAME substitutions.
+ Fix parsing tabs in ${gdb_target_obs}.
+ * configure.tgt (gdb_have_gcore): Replace case with for and if.
+
2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* remote.c (unpush_and_perror): Add output message final dot.
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 51fe87c..2435de4 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -707,11 +707,9 @@ esac
# Check whether this target supports gcore.
# Such target has to call set_gdbarch_find_memory_regions.
-case " ${gdb_target_obs} " in
- *" linux-tdep.o "*)
+gdb_have_gcore=false
+for t in x ${gdb_target_obs}; do
+ if test "$t" = linux-tdep.o; then
gdb_have_gcore=true
- ;;
- *)
- gdb_have_gcore=false
- ;;
-esac
+ fi
+done