| Index: gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
|
| diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
|
| similarity index 58%
|
| copy from gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| copy to gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
|
| index a810f7c012411bd6dd0412b222d1445cf08b7211..a57ab8ab478ea1e701e31588ac38ff480e979b29 100644
|
| --- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| +++ b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright 2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -16,20 +16,29 @@ load_lib dwarf.exp
|
|
|
| # This test can only be run on targets which support DWARF-2 and use gas.
|
| if {![dwarf2_support]} {
|
| - return 0
|
| + return 0
|
| +}
|
| +
|
| +# This test can only be run on x86_64 targets.
|
| +if {![istarget "x86_64-*-*"] || ![is_lp64_target]} {
|
| + return 0
|
| }
|
|
|
| standard_testfile .S
|
| -set mainfile main.c
|
| -set executable ${testfile}
|
|
|
| -if [prepare_for_testing ${testfile}.exp $executable "${srcfile} ${mainfile}" {}] {
|
| +if { [prepare_for_testing $testfile.exp $testfile $srcfile {nodebug}] } {
|
| return -1
|
| }
|
|
|
| -# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
|
| -if ![runto_main] {
|
| +if ![runto stop_frame] {
|
| + perror "Failed to stop in stop_frame"
|
| return -1
|
| }
|
|
|
| -gdb_test "p p->f" " = <optimized out>"
|
| +gdb_test "bt" \
|
| + "#0 stop_frame \[^\r\n\]*\r\nBacktrace stopped: previous frame identical to this frame \\(corrupt stack\\?\\)" \
|
| + "backtrace from stop_frame"
|
| +
|
| +gdb_test "up" \
|
| + "Initial frame selected; you cannot go up\\\." \
|
| + "up from stop_frame"
|
|
|