diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-11-28 22:53:38 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-11-28 22:53:38 +0000 |
commit | 44097287e580ae33d5fa7228fc2529bea5bb22e5 (patch) | |
tree | 80c8d2bc83c7bbb4cd58ea4027f6f10cbbc6dda1 /gdb/testsuite/gdb.base/mips_pro.exp | |
parent | e60b52c622c0f0183143ddfe011a09bb5c0e1dce (diff) | |
download | binutils-44097287e580ae33d5fa7228fc2529bea5bb22e5.zip binutils-44097287e580ae33d5fa7228fc2529bea5bb22e5.tar.gz binutils-44097287e580ae33d5fa7228fc2529bea5bb22e5.tar.bz2 |
2000-11-22 Michael Chastain <chastain@redhat.com>
* mips_pro.exp: Accept either "middle -> top -> main" or
"middle -> main" in the backtrace, because gcc can optimize
tail calls to jumps. Remove setup_xfail for the hppa case.
Add a comment with the original warning messages from PR 3016,
which was filed in 1993, to preserve them for posterity.
Diffstat (limited to 'gdb/testsuite/gdb.base/mips_pro.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/mips_pro.exp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp index ea2461e..fca2cb9 100644 --- a/gdb/testsuite/gdb.base/mips_pro.exp +++ b/gdb/testsuite/gdb.base/mips_pro.exp @@ -54,9 +54,14 @@ gdb_load ${binfile} if [runto middle] then { # PR 3016 + # warning: Hit heuristic-fence-post without finding + # warning: enclosing function for pc 0x1006ead0 if {$gcc_compiled} then { - setup_xfail "hppa*-*-*" "mips*-sgi-irix4*" "mips64*-*-elf" + setup_xfail "mips*-sgi-irix4*" "mips64*-*-elf" } - gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" + # The call chain is main -> top -> middle. But gcc can optimize a tail + # call to a jump, so the stack may contain either main -> top -> middle + # or main -> middle. + gdb_test "backtrace" "#0.*middle.*#\[12\].*main.*" } return 0 |