Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
diff --git a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
similarity index 65%
copy from gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
copy to gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
index 5b8b5edfc61f1d1c23d87ef7f3cdd7544ba54ded..61f872ffc3e4909edc4286f1db77f8ecf2852c5a 100644
--- a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
@@ -1,4 +1,4 @@
-# Copyright 2010-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
@@ -12,30 +12,33 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
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
}
-if { [skip_cplus_tests] } { continue }
+if {[skip_cplus_tests]} { continue }
standard_testfile .S
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} object {debug}] != "" } {
+if {[gdb_compile [file join $srcdir $subdir $srcfile] $binfile \
+ object {debug}] != "" } {
untested ${testfile}.exp
return -1
}
gdb_exit
gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+gdb_reinitialize_dir [file join $srcdir $subdir]
-# Be sure to set cp-abi before ${binfile} gets loaded
+# Be sure to set cp-abi before $binfile gets loaded
gdb_test "set cp-abi gnu-v3"
gdb_test "show cp-abi" {The currently selected C\+\+ ABI is "gnu-v3".*}
-gdb_load ${binfile}
+gdb_load $binfile
-gdb_test "ptype c" "type = struct C {\[\r\n \t\]*private:\[\r\n \t\]*int \\(C::\\*fp\\)\\(C \\*( const)?\\);\[\r\n \t\]*}"
+gdb_test "ptype crash" \
+ "type = class crash {\[\r\n \t\]*public:\[\r\n \t\]*crash\\(int \\(class {\\.\\.\\.}::\\*\\)\\(class {\\.\\.\\.} \\* const\\)\\);\[\r\n \t\]*}"
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698