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

Side by Side Diff: gdb/testsuite/gdb.cp/ovsrch.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/ovldbreak.exp ('k') | gdb/testsuite/gdb.cp/paren-type.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 2011-2012 Free Software Foundation, Inc. 1 # Copyright 2011-2012 Free Software Foundation, Inc.
2 # 2 #
3 # Contributed by Red Hat, originally written by Keith Seitz. 3 # Contributed by Red Hat, originally written by Keith Seitz.
4 # 4 #
5 # This program is free software; you can redistribute it and/or modify 5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by 6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or 7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version. 8 # (at your option) any later version.
9 # 9 #
10 # This program is distributed in the hope that it will be useful, 10 # This program is distributed in the hope that it will be useful,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 # Test whether open parentheses are correctly identified as overload 50 # Test whether open parentheses are correctly identified as overload
51 # information or conditional. 51 # information or conditional.
52 gdb_test "break ${class}::hibob if (a_param == 3)" "Breakpoint (\[0-9\]).*" 52 gdb_test "break ${class}::hibob if (a_param == 3)" "Breakpoint (\[0-9\]).*"
53 } 53 }
54 54
55 if { [skip_cplus_tests] } { continue } 55 if { [skip_cplus_tests] } { continue }
56 56
57 # Test for c++/11734 57 # Test for c++/11734
58 set testfile "ovsrch" 58 standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc
59 set binfile [file join $objdir $subdir $testfile]
60 59
61 set srcfiles {} 60 if {[prepare_for_testing $testfile $testfile \
62 for {set i 1} {$i < 5} {incr i} { 61 » [list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} {
63 lappend srcfiles $testfile$i.cc
64 }
65
66 if {[prepare_for_testing $testfile $testfile $srcfiles {c++ debug}]} {
67 return -1 62 return -1
68 } 63 }
69 64
70 if {![runto_main]} { 65 if {![runto_main]} {
71 perror "couldn't run to breakpoint" 66 perror "couldn't run to breakpoint"
72 continue 67 continue
73 } 68 }
74 69
75 # Break in A::stop_here and run tests. 70 # Break in A::stop_here and run tests.
76 if {[gdb_breakpoint "A::stop_here"]} { 71 if {[gdb_breakpoint "A::stop_here"]} {
(...skipping 14 matching lines...) Expand all
91 86
92 if {[gdb_breakpoint "'A::B::stop_here_too'"]} { 87 if {[gdb_breakpoint "'A::B::stop_here_too'"]} {
93 pass "break 'A::B::stop_here_too'" 88 pass "break 'A::B::stop_here_too'"
94 } 89 }
95 90
96 gdb_continue_to_breakpoint "stop_here_too" 91 gdb_continue_to_breakpoint "stop_here_too"
97 test_class A::B::inner 92 test_class A::B::inner
98 93
99 gdb_exit 94 gdb_exit
100 return 0 95 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.cp/ovldbreak.exp ('k') | gdb/testsuite/gdb.cp/paren-type.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698