Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc]: Fix gdb.base/gcore.exp
@ 2007-05-03 17:09 Markus Deuling
  2007-05-08 18:27 ` Ulrich Weigand
  2007-05-11 17:56 ` Daniel Jacobowitz
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Deuling @ 2007-05-03 17:09 UTC (permalink / raw)
  To: GDB Patches

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

Hi,

gdb.base/gcore.exp quits with a tcl error because of an uninitialized variable.
This patch initializes it in every case.

Is this ok ?

ChangeLog:

	* gdb.base/gcore.exp: Initialize variable
	core_supported.


-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com


[-- Attachment #2: diff-fix-gcore-exp --]
[-- Type: text/plain, Size: 534 bytes --]

diff -urN src/gdb/testsuite/gdb.base/gcore.exp dev/gdb/testsuite/gdb.base/gcore.exp
--- src/gdb/testsuite/gdb.base/gcore.exp	2007-01-09 18:59:11.000000000 +0100
+++ dev/gdb/testsuite/gdb.base/gcore.exp	2007-05-03 19:04:07.000000000 +0200
@@ -108,6 +108,7 @@
 
 set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore.test]
 
+set core_supported 0
 gdb_test_multiple "gcore ${objdir}/${subdir}/gcore.test" \
 	"save a corefile" \
 {
@@ -123,7 +124,6 @@
   }
 }
 
-global core_supported
 if {!$core_supported} {
   return -1
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-14 21:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 17:09 [rfc]: Fix gdb.base/gcore.exp Markus Deuling
2007-05-08 18:27 ` Ulrich Weigand
2007-05-08 18:37   ` Daniel Jacobowitz
2007-05-09 11:43     ` Markus Deuling
2007-05-11 17:56 ` Daniel Jacobowitz
2007-05-14 21:07   ` Ulrich Weigand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox