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

Side by Side Diff: gdb/testsuite/gdb.ada/small_reg_param.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 unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.ada/set_wstr/pck.ads ('k') | gdb/testsuite/gdb.ada/small_reg_param/foo.adb » ('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-2013 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 load_lib "ada.exp" 16 load_lib "ada.exp"
17 17
18 set testdir "small_reg_param" 18 standard_ada_testfile foo
19 set testfile "${testdir}/foo"
20 set srcfile ${srcdir}/${subdir}/${testfile}.adb
21 set binfile ${objdir}/${subdir}/${testfile}
22 19
23 file mkdir ${objdir}/${subdir}/${testdir}
24 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=- O1]] != "" } { 20 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=- O1]] != "" } {
25 return -1 21 return -1
26 } 22 }
27 23
28 clean_restart ${testfile} 24 clean_restart ${testfile}
29 25
30 if ![runto main] then { 26 if ![runto main] then {
31 perror "Couldn't run ${testfile}" 27 perror "Couldn't run ${testfile}"
32 return 28 return
33 } 29 }
34 30
35 gdb_breakpoint "call_me" 31 gdb_breakpoint "call_me"
36 32
37 # Continue until we hit the breakpoint inside `Call_Me'. We verify 33 # Continue until we hit the breakpoint inside `Call_Me'. We verify
38 # that the parameter value is correct. 34 # that the parameter value is correct.
39 gdb_test "continue" \ 35 gdb_test "continue" \
40 "Breakpoint .*, pck\\.call_me \\(w=50\\) at .*/pck.adb:.*" \ 36 "Breakpoint .*, pck\\.call_me \\(w=(w@entry=)?50\\) at .*/pck.adb:.*" \
41 "continue to call_me" 37 "continue to call_me"
42 38
43 # And just to make sure, we also verify that the parameter value 39 # And just to make sure, we also verify that the parameter value
44 # is correct when we print it manually. 40 # is correct when we print it manually.
45 gdb_test "print w" " = 50" 41 gdb_test "print w" " = 50"
46 42
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.ada/set_wstr/pck.ads ('k') | gdb/testsuite/gdb.ada/small_reg_param/foo.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698