| Index: gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
|
| diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
|
| similarity index 68%
|
| copy from gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| copy to gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
|
| index ac0f95ffc265cbc7ee049d143e3d4a244604587d..7df47bdee808dae0d7a6e55876743d5bad7c3c42 100644
|
| --- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| +++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright 2004-2005, 2007-2012 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
|
| @@ -19,19 +19,16 @@ if {![dwarf2_support]} {
|
| return 0
|
| }
|
|
|
| -set testfile "implptr-optimized-out"
|
| +# This testfile has reproducibility only with cc-with-index.sh.
|
| +
|
| +set testfile "dw2-minsym-in-cu"
|
| set srcfile ${testfile}.S
|
| -set mainfile main.c
|
| set executable ${testfile}
|
| -set binfile ${objdir}/${subdir}/${executable}
|
| -
|
| -if [prepare_for_testing ${testfile}.exp $executable "${srcfile} ${mainfile}" {}] {
|
| - return -1
|
| -}
|
|
|
| -# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
|
| -if ![runto_main] {
|
| +if [prepare_for_testing ${testfile}.exp ${executable} ${srcfile}] {
|
| return -1
|
| }
|
|
|
| -gdb_test "p p->f" " = <optimized out>"
|
| +# Ask for address which is still located in this CU but not described by
|
| +# any DIE.
|
| +gdb_test "info fun func2" {All functions matching regular expression "func2":}
|
|
|