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

Side by Side Diff: gdb/testsuite/gdb.cp/m-static.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.cp/m-static.cc ('k') | gdb/testsuite/gdb.cp/maint.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2002, 2004, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 2002, 2004, 2007-2012 Free Software Foundation, Inc.
2 2
3 # This program is free software; you can redistribute it and/or modify 3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by 4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16 # Tests for member static data 16 # Tests for member static data
17 # 2002-05-13 Benjamin Kosnik <bkoz@redhat.com> 17 # 2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
18 # 2002-08-22 David Carlton <carlton@math.stanford.edu> 18 # 2002-08-22 David Carlton <carlton@math.stanford.edu>
19 19
20 # This file is part of the gdb testsuite 20 # This file is part of the gdb testsuite
21 21
22 if $tracelevel then {
23 strace $tracelevel
24 }
25
26 if { [skip_cplus_tests] } { continue } 22 if { [skip_cplus_tests] } { continue }
27 23
28 # 24 #
29 # test running programs 25 # test running programs
30 # 26 #
31 27
32 set testfile "m-static" 28 standard_testfile .cc m-static1.cc
33 set srcfile "${testfile}.cc"
34 set srcfile1 "${testfile}1.cc"
35 set objfile "${testfile}.o"
36 set objfile1 "${testfile}1.o"
37 set binfile "${objdir}/${subdir}/${testfile}"
38 29
39 if { [gdb_compile "$srcdir/$subdir/$srcfile" "$objdir/$subdir/$objfile" object {debug c++}] != "" } { 30 if [get_compiler_info] {
40 untested m-static.exp
41 return -1
42 }
43
44 if { [gdb_compile "$srcdir/$subdir/$srcfile1" "$objdir/$subdir/$objfile1" objec t {debug c++}] != "" } {
45 untested m-static.exp
46 return -1
47 }
48
49 if { [gdb_compile "$objdir/$subdir/$objfile $objdir/$subdir/$objfile1" "${binfil e}" executable {debug c++}] != "" } {
50 untested m-static.exp
51 return -1
52 }
53
54 if [get_compiler_info $binfile] {
55 return -1 31 return -1
56 } 32 }
57 33
58 gdb_exit 34 if {[prepare_for_testing $testfile.exp $testfile \
59 gdb_start 35 » [list $srcfile $srcfile2] {debug c++}]} {
60 gdb_reinitialize_dir $srcdir/$subdir 36 return -1
61 gdb_load ${binfile} 37 }
62 38
63 if ![runto_main] then { 39 if ![runto_main] then {
64 perror "couldn't run to breakpoint" 40 perror "couldn't run to breakpoint"
65 continue 41 continue
66 } 42 }
67 43
68 get_debug_format 44 get_debug_format
69 set non_dwarf [expr ! [test_debug_format "DWARF 2"]] 45 set non_dwarf [expr ! [test_debug_format "DWARF 2"]]
70 46
71 # First, run to after we've constructed all the objects: 47 # First, run to after we've constructed all the objects:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 # that GDB's current behavior in such situations is either consistent 129 # that GDB's current behavior in such situations is either consistent
154 # across platforms or optimal, so I'm not including one now. 130 # across platforms or optimal, so I'm not including one now.
155 131
156 # Step into test1.method and examine the method-scoped static. 132 # Step into test1.method and examine the method-scoped static.
157 # This is a regression test for PR 9708. 133 # This is a regression test for PR 9708.
158 gdb_test "step" "gnu_obj_1::method.*" 134 gdb_test "step" "gnu_obj_1::method.*"
159 gdb_test "print svar" " = true" 135 gdb_test "print svar" " = true"
160 136
161 gdb_exit 137 gdb_exit
162 return 0 138 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.cp/m-static.cc ('k') | gdb/testsuite/gdb.cp/maint.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698