From: Michael Chastain <mec.gnu@mindspring.com>
To: kettenis@gnu.org, gdb@sources.redhat.com
Subject: Re: Help, DejaGnu bails out on sigstep.exp
Date: Wed, 22 Sep 2004 21:45:00 -0000 [thread overview]
Message-ID: <4151F25E.nailM4C1XP8W8@mindspring.com> (raw)
In-Reply-To: <200409222115.i8MLFPfB001254@elgar.sibelius.xs4all.nl>
Mark Kettenis <kettenis@gnu.org> 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 ...
> 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?
You could also go down to the offending code block, the first big
block of "advancei", and try deleting "-re" clauses until the
problem goes away. :-/
Michael
next prev parent reply other threads:[~2004-09-22 21:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 21:15 Mark Kettenis
2004-09-22 21:40 ` Andrew Cagney
2004-09-22 21:45 ` Michael Chastain [this message]
2004-09-23 18:51 ` Mark Kettenis
2004-09-23 20:01 ` Michael Chastain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4151F25E.nailM4C1XP8W8@mindspring.com \
--to=mec.gnu@mindspring.com \
--cc=gdb@sources.redhat.com \
--cc=kettenis@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox