From: Jimmy Guo <guo@cup.hp.com>
To: Fernando Nasser <fnasser@cygnus.com>
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: [PATCH] dejagnu lib/framework.exp
Date: Fri, 28 Jul 2000 17:26:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.10.10007281703320.8492-100000@hpcll168.cup.hp.com> (raw)
In-Reply-To: <3981F6D9.F23429DE@cygnus.com>
And here is my analysis of the UNRESOLVED message:
UNRESOLVED is printed if errcnt >= error_threshold (set at 1).
errcnt is reset after each test point.
delete_breakpoint can call perror _easily_ if pattern matching becomes
out of sync:
Sometimes test codes might have something like:
send_gdb <command_string>
<continue on without matching for gdb response>
The resulting gdb prompt will stay in the expect buffer and
sometimes if GDB response is slow it starts a chain reaction of
all following tests matching "$gdb_prompt $" ... sooner or later
it reaches proc delete_breakpoint and that proc will happily
issue an perror :(
In other cases, delete_breakpoint would confuse itself with the
tight loop of 'send_gdb "y\n"' and 'exp_continue'.
I'll patch up some of the tests, and will do some larger scale changes
in lib/gdb.exp to:
1) have more robust delete_breakpoint implementation.
2) capture and handle runto perrors (reset errcnt afterwards) instead of
spilling into the next test point.
I will find the time to refresh my memory on commiting the patch via CVS
(yes I have enough information on how to do this ...), and commit this
framework.exp patch.
- Jimmy
On Fri, 28 Jul 2000, Fernando Nasser wrote:
>Jimmy, your patch is correct. Having it as global prevents someone to
>mistakenly set it on the test file and calling pass from inside a proc
>and causing it not to see it.
>
>However, I am not aware of ay test that sets this (used to xfail depending
>on compiler flags used).
>
>And it is probably unrelated to your problem as well.
>
>But please check this in so both pass and fail look the same.
prev parent reply other threads:[~2000-07-28 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10007281341530.8492-100000@hpcll168.cup.hp.com>
2000-07-28 14:17 ` Fernando Nasser
2000-07-28 17:26 ` Jimmy Guo [this message]
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=Pine.LNX.4.10.10007281703320.8492-100000@hpcll168.cup.hp.com \
--to=guo@cup.hp.com \
--cc=fnasser@cygnus.com \
--cc=gdb-patches@sourceware.cygnus.com \
/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