From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28191 invoked by alias); 10 Jan 2002 03:47:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28150 invoked from network); 10 Jan 2002 03:47:19 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 10 Jan 2002 03:47:19 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16OWCF-0006IP-00 for ; Wed, 09 Jan 2002 22:48:07 -0500 Date: Wed, 09 Jan 2002 19:47:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: help: dejagnu stumps me again Message-ID: <20020109224807.A24112@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i X-SW-Source: 2002-01/txt/msg00078.txt.bz2 I'm really not fond of TCL... If someone could tell me the problem with the following patch, I'd be deeply in their debt. I've spent several hours on this and the companion (failure of the ^C handling in annota2.exp, which can be cured by putting a "shell echo" in front of it. I've no idea if GDB or Expect is at fault and I can't figure it out. My suspicion is GDB.) This patch causes the testsuite to hang for a while. After it times out, both the sent message and expected response appear. Changing -ex to -re makes no difference. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer Index: demangle.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/demangle.exp,v retrieving revision 1.1.1.4 diff -u -r1.1.1.4 demangle.exp --- demangle.exp 1999/09/09 00:00:27 1.1.1.4 +++ demangle.exp 2002/01/10 03:42:29 @@ -531,7 +531,18 @@ test_demangling_exact "gnu: foo__I_4000000000000000000000000000000000000000000000000000000000000000000000000" "Can't demangle \"foo__I_4000000000000000000000000000000000000000000000000000000000000000000000000\"" ## 1999-04-19: "Fix from Dale Hawkins". Shouldn't segfault. - test_demangling_exact "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" "Can't demangle \"__thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator\"" + # Accept even a dubious demangling; the string is ambiguous. + send_gdb "maintenance demangle __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator\n" + gdb_expect { + -ex "virtual function thunk (delta:-64) for CosNaming::_proxy_NamingContext::_0RL__list(unsigned long, _CORBA_Unbounded_Sequence *&, CosNaming::BindingIterator *&)" + { pass "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" } + -ex "Can't demangle \"__thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator\"" + { pass "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" } + -re ".*$gdb_prompt $" + { fail "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" } + timeout + { fail "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator (timeout)" } + } } #