From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFA] testsuite avoid tcl error in gdb.threads/gcore-thread.exp
Date: Wed, 23 Jun 2010 13:59:00 -0000 [thread overview]
Message-ID: <000901cb12dc$40c1f830$c245e890$@muller@ics-cnrs.unistra.fr> (raw)
I get a tcl error on gdb.threads/gcore-thread.exp
because cygwin fails before, and the program exits
earlier than expected.
When the test which is supposed
to set core_supported variable, no of the two variants is output,
but instead I get a message that I can't do this
without a running process.
gcore /usr/local/src/gdbcvs/build-norm/gdb/testsuite/gdb.threads/gcore.test
You can't do that without a process to debug.
This results in the fact that the core_supported variable is
not set, and the
if {!$core_supported}
issues a tcl ERROR.
The patch below, set core_supported to `0' before
testing for support at global level.
Tested on gcc16 (it works again, hurrah!)
no changes.
OK to commit?
Pierre Muller
Pascal language support maintainer for GDB
2010-06-23 Pierre Muller <muller@ics.u-strasbg.fr>
* gcore-thread.exp (core_supported): Initialize variable to zero
at global scope.
(gdb_test_multiple): Only set CORE_SUPPORTED if test passes.
Index: src/gdb/testsuite/gdb.threads/gcore-thread.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/gcore-thread.exp,v
retrieving revision 1.17
diff -u -p -r1.17 gcore-thread.exp
--- src/gdb/testsuite/gdb.threads/gcore-thread.exp 2 Jun 2010 19:58:21
-0000 1.17
+++ src/gdb/testsuite/gdb.threads/gcore-thread.exp 23 Jun 2010 13:16:20
-0000
@@ -94,6 +94,9 @@ gdb_test "continue" "Continuing.*Breakpo
set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore.test]
# Drop corefile
+global core_supported
+set core_supported 0
+
gdb_test_multiple "gcore ${objdir}/${subdir}/gcore.test" \
"save a corefile" \
{
@@ -104,12 +107,9 @@ gdb_test_multiple "gcore ${objdir}/${sub
}
-re "Can't create a corefile\[\r\n\]+$gdb_prompt $" {
unsupported "save a corefile"
- global core_supported
- set core_supported 0
}
}
-global core_supported
if {!$core_supported} {
return -1
}
next reply other threads:[~2010-06-23 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 13:59 Pierre Muller [this message]
2010-06-23 14:42 ` Pedro Alves
2010-06-23 15:31 ` Pierre Muller
[not found] ` <5627205469024062490@unknownmsgid>
2010-06-26 17:16 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000901cb12dc$40c1f830$c245e890$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox