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: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: [RFA] gdb.base/mips_pro.exp
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 28 Nov 2000 17:54:54 -0500
- CC: Peter dot Schauer at Regent dot E-Technik dot TU-Muenchen dot DE, gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat , Inc. - Toronto
- References: <200011222047.MAA27591@train2.cygnus.com>
This one is in.
Fernando
Michael Elizabeth Chastain wrote:
>
> 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
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9