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

Side by Side Diff: gdb/testsuite/gdb.opt/inline-locals.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.opt/inline-cmds.exp ('k') | gdb/testsuite/gdb.pascal/Makefile.in » ('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 2008, 2010-2012 Free Software Foundation, Inc. 1 # Copyright 2008, 2010-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 set testfile "inline-locals" 16 standard_testfile .c inline-markers.c
17 set srcfile ${testfile}.c
18 set srcfile2 "inline-markers.c"
19 set fullsrcfile "${srcdir}/${subdir}/${srcfile}"
20 set fullsrcfile2 "${srcdir}/${subdir}/${srcfile2}"
21 set sources [list ${fullsrcfile} ${fullsrcfile2}]
22 set binfile ${objdir}/${subdir}/${testfile}
23 17
24 if { [gdb_compile ${sources} ${binfile} \ 18 if {[prepare_for_testing $testfile.exp $testfile \
25 » executable {debug optimize=-O2}] != "" } { 19 » [list $srcfile $srcfile2] {debug optimize=-O2}]} {
26 untested inline-locals.exp
27 return -1 20 return -1
28 } 21 }
29 22
30 gdb_exit
31 gdb_start
32 gdb_reinitialize_dir $srcdir/$subdir
33 gdb_load ${binfile}
34
35 runto_main 23 runto_main
36 24
37 get_compiler_info $binfile 25 get_compiler_info
38 get_debug_format 26 get_debug_format
39 if { [skip_inline_var_tests] } { 27 if { [skip_inline_var_tests] } {
40 untested inline-bt.exp 28 untested inline-bt.exp
41 return 29 return
42 } 30 }
43 31
44 set no_frames [skip_inline_frame_tests] 32 set no_frames [skip_inline_frame_tests]
45 33
46 set line1 [gdb_get_line_number "set breakpoint 1 here" ${srcfile2}] 34 set line1 [gdb_get_line_number "set breakpoint 1 here" ${srcfile2}]
47 gdb_breakpoint $srcfile2:$line1 35 gdb_breakpoint $srcfile2:$line1
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 fail $msg 97 fail $msg
110 } 98 }
111 } 99 }
112 } else { 100 } else {
113 gdb_test "up" "#1 .*main .* at .*" "up from bar (3)" 101 gdb_test "up" "#1 .*main .* at .*" "up from bar (3)"
114 gdb_test "info locals" ".*arg1 = 1.*" "info locals above bar (3a)" 102 gdb_test "info locals" ".*arg1 = 1.*" "info locals above bar (3a)"
115 gdb_test "info locals" ".*arg2 = 184.*" "info locals above bar (3b)" 103 gdb_test "info locals" ".*arg2 = 184.*" "info locals above bar (3b)"
116 } 104 }
117 105
118 gdb_test "print array\[0\]" "\\\$$decimal = 184" "print local (3)" 106 gdb_test "print array\[0\]" "\\\$$decimal = 184" "print local (3)"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.opt/inline-cmds.exp ('k') | gdb/testsuite/gdb.pascal/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698