This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit#2] configure.tgt gcore fix [Re: [commit] [patch 2/2+rfc+doc] Install gcore by default (+new man page)]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>, Pedro Alves <palves at redhat dot com>
- Date: Thu, 11 Apr 2013 18:55:31 +0200
- Subject: [commit#2] configure.tgt gcore fix [Re: [commit] [patch 2/2+rfc+doc] Install gcore by default (+new man page)]
- References: <20130407185443 dot GB15389 at host2 dot jankratochvil dot net> <83r4ilawlx dot fsf at gnu dot org> <20130408172841 dot GA28868 at host2 dot jankratochvil dot net> <87hajgua2o dot fsf at fleche dot redhat dot com> <516424FE dot 4050307 at redhat dot com> <20130409165525 dot GA29570 at host2 dot jankratochvil dot net> <51654DF0 dot 3090101 at redhat dot com> <20130410194910 dot GA3941 at host2 dot jankratochvil dot net> <51669166 dot 5060007 at redhat dot com> <20130411142957 dot GA22567 at host2 dot jankratochvil dot net>
On Thu, 11 Apr 2013 16:29:57 +0200, Jan Kratochvil wrote:
> Checked in.
I have found gcore is not available for:
i[34567]86-*-linux*)
^I# Target: Intel 386 running GNU/Linux
^Igdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
^I^I^Isolib-svr4.o symfile-mem.o \
^I^I^Ilinux-tdep.o linux-record.o"
because " linux-tdep.o " is not found there.
Checked in.
Sorry,
Jan
http://sourceware.org/ml/gdb-cvs/2013-04/msg00110.html
--- src/gdb/ChangeLog 2013/04/11 14:13:42 1.15398
+++ src/gdb/ChangeLog 2013/04/11 16:53:01 1.15399
@@ -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.
--- src/gdb/configure.tgt 2013/04/11 14:13:43 1.273
+++ src/gdb/configure.tgt 2013/04/11 16:53:01 1.274
@@ -707,11 +707,9 @@
# 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