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

Side by Side Diff: gdb/testsuite/gdb.multi/bkpt-multi-exec.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.multi/base.exp ('k') | gdb/testsuite/gdb.multi/watchpoint-multi.c » ('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 2009-2012 Free Software Foundation, Inc. 1 # Copyright 2009-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 if { [is_remote target] || ![isnative] } then { 16 if { [is_remote target] || ![isnative] } then {
17 continue 17 continue
18 } 18 }
19 19
20 # Until "catch exec" is implemented on other targets...
21 #
22 if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then {
23 continue
24 }
25
20 set testfile "bkpt-multi-exec" 26 set testfile "bkpt-multi-exec"
21 27
22 set exec1 "bkpt-multi-exec" 28 set exec1 "bkpt-multi-exec"
23 set srcfile1 ${exec1}.c 29 set srcfile1 ${exec1}.c
24 set binfile1 ${objdir}/${subdir}/${exec1} 30 set binfile1 [standard_output_file ${exec1}]
25 31
26 set exec2 "crashme" 32 set exec2 "crashme"
27 set srcfile2 ${exec2}.c 33 set srcfile2 ${exec2}.c
28 set binfile2 ${objdir}/${subdir}/${exec2} 34 set binfile2 [standard_output_file ${exec2}]
29 35
30 if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnin gs}] } { 36 if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings} ] == -1 } {
31 return -1 37 return -1
32 } 38 }
33 39
34 if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnin gs}] } { 40 if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings} ] == -1 } {
35 return -1 41 return -1
36 } 42 }
37 # Until "catch exec" is implemented on other targets...
38 #
39 if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then {
40 continue
41 }
42 43
43 # Start with a fresh gdb 44 # Start with a fresh gdb
44 45
45 clean_restart ${exec1} 46 clean_restart ${exec1}
46 47
47 # Start the program running, and stop at main. 48 # Start the program running, and stop at main.
48 # 49 #
49 if ![runto_main] then { 50 if ![runto_main] then {
50 perror "Couldn't run ${binfile1}" 51 perror "Couldn't run ${binfile1}"
51 return 52 return
(...skipping 19 matching lines...) Expand all
71 72
72 # Start the program running, and stop at main. 73 # Start the program running, and stop at main.
73 # 74 #
74 gdb_test "inferior 1" 75 gdb_test "inferior 1"
75 76
76 # Now run to the breakpoint. This should cross the exec, and stop at 77 # Now run to the breakpoint. This should cross the exec, and stop at
77 # the breakpoint before the crash. 78 # the breakpoint before the crash.
78 gdb_test "run" "${srcfile2}:${bp_location}.*set breakpoint here.*" 79 gdb_test "run" "${srcfile2}:${bp_location}.*set breakpoint here.*"
79 80
80 return 0 81 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.multi/base.exp ('k') | gdb/testsuite/gdb.multi/watchpoint-multi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698