[RFA] gdb.base/mips_pro.exp
Fernando Nasser
fnasser@cygnus.com
Tue Nov 28 14:58:00 GMT 2000
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
More information about the Gdb-patches
mailing list