| Index: gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
|
| diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
|
| similarity index 69%
|
| copy from gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| copy to gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
|
| index a810f7c012411bd6dd0412b222d1445cf08b7211..67a9554920bcefa8d7273cb8e1728653f0068a4b 100644
|
| --- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
|
| +++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright 2012-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
|
| @@ -20,16 +20,11 @@ if {![dwarf2_support]} {
|
| }
|
|
|
| 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] {
|
| - return -1
|
| -}
|
| -
|
| -gdb_test "p p->f" " = <optimized out>"
|
| +# The correct new[] and delete[] syntax is probably unsupported by GDB.
|
| +gdb_test "ptype f" {type = void \(typename<sizeof \(int\)>, C::operator new\(int\), C::operator delete\(void\*\), C::operator new\[\]\(int\), C::operator delete\[\]\(void\*\)\)}
|
|
|