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

Side by Side Diff: gdb/testsuite/gdb.mi/mi-solib.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.mi/mi-simplerun.exp ('k') | gdb/testsuite/gdb.mi/mi-stack.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 # 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 mi-support.exp 16 load_lib mi-support.exp
17 set MIFLAGS "-i=mi2" 17 set MIFLAGS "-i=mi2"
18 18
19 if {[skip_shlib_tests]} { 19 if {[skip_shlib_tests]} {
20 untested mi-solib.exp 20 untested mi-solib.exp
21 return -1 21 return -1
22 } 22 }
23 23
24 gdb_exit 24 gdb_exit
25 if [mi_gdb_start] { 25 if [mi_gdb_start] {
26 continue 26 continue
27 } 27 }
28 28
29 standard_testfile solib-main.c solib-lib.c
30
29 set libname "solib-lib" 31 set libname "solib-lib"
30 set srcfile_lib ${srcdir}/${subdir}/${libname}.c 32 set srcfile_lib ${srcdir}/${subdir}/$srcfile2
31 set binfile_lib ${objdir}/${subdir}/${libname}.so 33 set binfile_lib [standard_output_file ${libname}.so]
32 set lib_flags [list debug] 34 set lib_flags [list debug]
33 35
34 set testfile "solib-main" 36 set srcfile_main ${srcdir}/${subdir}/$srcfile
35 set srcfile ${srcdir}/${subdir}/${testfile}.c
36 set binfile ${objdir}/${subdir}/${testfile}
37 set bin_flags [list debug shlib=${binfile_lib}] 37 set bin_flags [list debug shlib=${binfile_lib}]
38 38
39 if [get_compiler_info ${binfile}] { 39 if [get_compiler_info] {
40 return -1 40 return -1
41 } 41 }
42 42
43 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" 43 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
44 || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } { 44 || [gdb_compile ${srcfile_main} ${binfile} executable $bin_flags] != "" } {
45 untested "Could not compile $binfile_lib or $binfile." 45 untested "Could not compile $binfile_lib or $binfile."
46 return -1 46 return -1
47 } 47 }
48 48
49 mi_delete_breakpoints 49 mi_delete_breakpoints
50 mi_gdb_reinitialize_dir $srcdir/$subdir 50 mi_gdb_reinitialize_dir $srcdir/$subdir
51 mi_gdb_reinitialize_dir $srcdir/$subdir 51 mi_gdb_reinitialize_dir $srcdir/$subdir
52 mi_gdb_load ${binfile} 52 mi_gdb_load ${binfile}
53 53
54 mi_load_shlibs $binfile_lib 54 mi_load_shlibs $binfile_lib
55 55
56 mi_gdb_test "777-gdb-set stop-on-solib-events 1" "777\\^done" \ 56 mi_gdb_test "777-gdb-set stop-on-solib-events 1" "777\\^done" \
57 "set stop-on-solib-events" 57 "set stop-on-solib-events"
58 58
59 # We use "run" rather than "-exec-run" here in order to test that CLI 59 # We use "run" rather than "-exec-run" here in order to test that CLI
60 # commands still cause the correct MI output to be generated. 60 # commands still cause the correct MI output to be generated.
61 mi_run_with_cli 61 mi_run_with_cli
62
63 global async
64 if { $async } {
65 setup_kfail gdb/13860 *-*-*
66 }
62 mi_expect_stop solib-event .* .* .* .* .* "check for solib event" 67 mi_expect_stop solib-event .* .* .* .* .* "check for solib event"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.mi/mi-simplerun.exp ('k') | gdb/testsuite/gdb.mi/mi-stack.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698