gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 11 Apr 2013 16:53:01 +0000 (16:53 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 11 Apr 2013 16:53:01 +0000 (16:53 +0000)
Fix parsing tabs in ${gdb_target_obs}.
* configure.tgt (gdb_have_gcore): Replace case with for and if.

gdb/ChangeLog
gdb/configure.tgt

index 0e65461591c440e64d1100311b109d8dd4266159..eaf9d042883a338ce601c97d4b232dce258a1087 100644 (file)
@@ -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.
index 51fe87c620f2525a490b01ab26dfba55fd85ecee..2435de4ffd4ac8384826ef866757b7ec6b08bf22 100644 (file)
@@ -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
This page took 0.026149 seconds and 4 git commands to generate.