From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1595 invoked by alias); 23 Sep 2004 18:51:20 -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 1588 invoked from network); 23 Sep 2004 18:51:18 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 23 Sep 2004 18:51:18 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id i8NIpGe4026383; Thu, 23 Sep 2004 20:51:16 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id i8NIpDjL000928; Thu, 23 Sep 2004 20:51:13 +0200 (CEST) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id i8NIpD6B000925; Thu, 23 Sep 2004 20:51:13 +0200 (CEST) Date: Thu, 23 Sep 2004 18:51:00 -0000 Message-Id: <200409231851.i8NIpD6B000925@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: mec.gnu@mindspring.com CC: gdb@sources.redhat.com In-reply-to: <4151F25E.nailM4C1XP8W8@mindspring.com> (message from Michael Chastain on Wed, 22 Sep 2004 17:45:02 -0400) Subject: Re: Help, DejaGnu bails out on sigstep.exp References: <200409222115.i8MLFPfB001254@elgar.sibelius.xs4all.nl> <4151F25E.nailM4C1XP8W8@mindspring.com> X-SW-Source: 2004-09/txt/msg00206.txt.bz2 From: Michael Chastain Date: Wed, 22 Sep 2004 17:45:02 -0400 Mark Kettenis wrote: > Running ../../../src/gdb/testsuite/gdb.base/sigstep.exp ... > ERROR: (DejaGnu) proc "other" does not exist. This smells like you are getting screwed by this code: gdb_test_multiple "continue" "$test" { -re "done = 0.*$gdb_prompt " { pass $test } # other patterns can go here } There are three occurences of "# other patterns can go here". Try changing them to: # tcl_syntax_bites_1 other patterns can go here # tcl_syntax_bites_2 other patterns can go here # tcl_syntax_bites_3 other patterns can go here It's a quirk of TCL that comments can occur only in certain places. Basically, it's a side effect of the "everything is a block or a delayed block" syntax rules. I bet that the problem would not actually happen unless all the "-re" in front of it fell through. If that really is the problem, you can fix it as an obvious fix, something like: # Run around to the done # You can add more patterns to this if you need them. gdb_test_multiple ... That's indeed the case. Thanks! I'll check in the obvious patch. > FAIL: gdb.base/sigstep.exp: nexti from handleri; leave signal trampoline > FAIL: gdb.base/sigstep.exp: finish from handleri; continue to handler > FAIL: gdb.base/sigstep.exp: finish from handleri; leave handler (in main) > FAIL: gdb.base/sigstep.exp: finish from handleri; leave signal trampoline > FAIL: gdb.base/sigstep.exp: return from handleri; continue to handler > ERROR: Undefined command "return". > ERROR: Got interactive prompt. > ERROR: breakpoints not deleted > ERROR: (DejaGnu) proc "other" does not exist. > The error code is NONE Beats me. I don't see where the "Undefined command "return"" is coming from. Can you add some "-v" to the invocation of runtest and show a gdb.log fragment? The return is probably the input that is intended for GDB, but doesn't arrive there. I'll look a bit further into it, and I'll post the gdb.log if I don't manage to fix it. Mark P.S. Since you keep bugging about testsuite results (and rightly so), can you tell me the guidelines again? Was it that you wanted the output of: cat gdb.sum | grep -v ^PASS or something a bit more difficult?