From: Paul Gilliam <pgilliam@us.ibm.com>
To: Michael Chastain <mec.gnu@mindspring.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Avoid timeouts in call-sc.exp
Date: Wed, 25 Aug 2004 19:08:00 -0000 [thread overview]
Message-ID: <200408251206.41425.pgilliam@us.ibm.com> (raw)
In-Reply-To: <412CD652.nail1O31PAOF7@mindspring.com>
Here is another try.
-=# Paul #=-
PS: I only did the ${....} because that seemed to be the usage in call-sc.exp
2004-08-25 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/call-sc: Make sure PC is syncronized after the "return".
diff -Naur old/call-sc.exp new/call-sc.exp
--- old/call-sc.exp 2004-08-24 01:11:59.000000000 +0000
+++ new/call-sc.exp 2004-08-25 22:27:04.089926216 +0000
@@ -281,6 +281,30 @@
}
}
+ # If the previous test did not work, the program counter might
+ # still be inside foo() rather than main(). Make sure the program
+ # counter is is main().
+ #
+ # This happens on ppc64 GNU/Linux with gcc 3.4.1 and a buggy GDB
+
+ set test "return foo; syncronize pc to main()"
+ for {set loop_count 0} {$loop_count < 2} {incr loop_count} {
+ gdb_test_multiple "backtrace 1" $test {
+ -re "#0.*main \\(\\).*${gdb_prompt} $" {
+ pass $test
+ set loop_count 2
+ }
+ -re "#0.*fun \\(\\).*${gdb_prompt} $" {
+ if {$loop_count < 1} {
+ gdb_test "finish" ".*" ""
+ } else {
+ fail $test
+ set loop_count 2
+ }
+ }
+ }
+ }
+
# Check that the return-value is as expected. At this stage we're
# just checking that GDB has returned a value consistent with
# "return_value_unknown" set above.
On Wednesday 25 August 2004 11:11, Michael Chastain wrote:
> It's a little weird, but it's much better.
>
> . "synchronize" is spelled with an h.
> . include a changelog entry with the submission
> . you don't need ${...} for each variable access.
> just $loop_count, $test, and so on.
> . this is the fsf version of gdb, it's better to work with
> fsf sources -- either gdb 6.2 or the cvs version of gdb,
> not a red hat gdb.
>
> Can you fix those things up, then download gdb 6.2 or the
> cvs version of gdb, and do your work against that.
next prev parent reply other threads:[~2004-08-25 19:08 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-18 21:28 Paul Gilliam
2004-08-18 21:58 ` Michael Chastain
2004-08-20 10:34 ` Michael Chastain
2004-08-20 16:17 ` Paul Gilliam
2004-08-23 21:11 ` Paul Gilliam
2004-08-23 21:55 ` Michael Chastain
2004-08-24 16:15 ` Paul Gilliam
2004-08-24 17:26 ` Michael Chastain
2004-08-24 18:50 ` Paul Gilliam
2004-08-24 18:52 ` Daniel Jacobowitz
2004-08-24 18:55 ` Michael Chastain
2004-08-24 19:14 ` Paul Gilliam
2004-08-25 17:54 ` Paul Gilliam
2004-08-25 18:11 ` Michael Chastain
2004-08-25 18:21 ` Paul Gilliam
2004-08-25 18:52 ` Michael Chastain
2004-08-25 19:08 ` Paul Gilliam [this message]
2004-08-26 14:17 ` Michael Chastain
2004-08-26 16:17 ` Paul Gilliam
2004-08-26 16:26 ` Michael Chastain
2004-08-26 16:34 ` Paul Gilliam
[not found] ` <200408261227.58890.pgilliam@us.ibm.com>
[not found] ` <412E5915.8010401@gnu.org>
2004-08-31 19:30 ` Paul Gilliam
2004-08-31 20:48 ` Paul Gilliam
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=200408251206.41425.pgilliam@us.ibm.com \
--to=pgilliam@us.ibm.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mec.gnu@mindspring.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