This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Incompatibility with tcl 8.4 [Re: [1/2] RFC: add a DWARF assembler]
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 01 Feb 2013 10:49:49 -0700
- Subject: Re: Incompatibility with tcl 8.4 [Re: [1/2] RFC: add a DWARF assembler]
- References: <87vcb739og.fsf@fleche.redhat.com> <20130201082022.GA22045@host2.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> Hi Tom,
Jan> on RHEL-5 with tcl-8.4.13-6.el5.x86_64:
Jan> Running gdb/testsuite/gdb.dwarf2/method-ptr.exp ...
Jan> ERROR: tcl error sourcing gdb/testsuite/gdb.dwarf2/method-ptr.exp.
Jan> ERROR: can't read "_cu_count": no such variable
Sorry about that.
It appears to be a subtle change in Tcl 8.5.
Anyway, please try this:
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index 28e8e26..bb58997 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -732,6 +732,7 @@ namespace eval Dwarf {
variable _defer
variable _label_num
variable _strings
+ variable _cu_count
if {!$_initialized} {
_read_constants
Tom