This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc]: Fix gdb.base/gcore.exp
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Tue, 8 May 2007 20:26:54 +0200 (CEST)
- Subject: Re: [rfc]: Fix gdb.base/gcore.exp
Markus Deuling wrote:
> gdb.base/gcore.exp quits with a tcl error because of an uninitialized variable.
> This patch initializes it in every case.
The test case currently has:
gdb_test_multiple "gcore ${objdir}/${subdir}/gcore.test" \
"save a corefile" \
{
-re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" {
pass "save a corefile"
global core_supported
set core_supported 1
}
-re "Can't create a corefile\[\r\n\]+$gdb_prompt $" {
unsupported "save a corefile"
global core_supported
set core_supported 0
}
}
What output do you get that runs into neither of the two
tested patterns?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com