This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gdb.base/mips_pro.exp
- To: chastain at cygnus dot com, Peter dot Schauer at Regent dot E-Technik dot TU-Muenchen dot DE
- Subject: Re: [RFA] gdb.base/mips_pro.exp
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Wed, 22 Nov 2000 12:47:15 -0800
- Cc: fnasser at cygnus dot com, gdb-patches at sourceware dot cygnus dot com
Here is take #3 on my small patch to gdb/testsuite/gdb.base/mips_pro.exp .
This version includes an additional comment and a real ChangeLog entry.
Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"
---
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.
Index: gdb/testsuite/gdb.base/mips_pro.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/mips_pro.exp,v
retrieving revision 1.1.1.3
diff -c -3 -p -r1.1.1.3 mips_pro.exp
*** mips_pro.exp 1999/06/28 16:03:33 1.1.1.3
--- mips_pro.exp 2000/11/22 20:16:41
*************** gdb_load ${binfile}
*** 54,62 ****
if [runto middle] then {
# PR 3016
if {$gcc_compiled} then {
! setup_xfail "hppa*-*-*" "mips*-sgi-irix4*" "mips64*-*-elf"
}
! gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*"
}
return 0
--- 54,67 ----
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 "mips*-sgi-irix4*" "mips64*-*-elf"
}
! # 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