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

Side by Side Diff: gdb/testsuite/gdb.base/shlib-call.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.base/setvar.exp ('k') | gdb/testsuite/gdb.base/shreloc.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 1997-2000, 2004, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 1997-2000, 2004, 2007-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
(...skipping 10 matching lines...) Expand all
21 # shr2.c (shared lib) 21 # shr2.c (shared lib)
22 # ss.h (header for shr2.c) 22 # ss.h (header for shr2.c)
23 # 23 #
24 # file written by Elena Zannoni: elz@ch.apollo.com 24 # file written by Elena Zannoni: elz@ch.apollo.com
25 # 25 #
26 26
27 #debug shmain 27 #debug shmain
28 #prop lib shr1.sl 28 #prop lib shr1.sl
29 #prop lib shr2.sl 29 #prop lib shr2.sl
30 30
31 if $tracelevel then {
32 strace $tracelevel
33 }
34
35 31
36 if {[skip_shlib_tests]} { 32 if {[skip_shlib_tests]} {
37 return 0 33 return 0
38 } 34 }
39 35
40 set testfile "shmain" 36 set testfile "shmain"
41 set libfile1 "shr1" 37 set libfile1 "shr1"
42 set libfile2 "shr2" 38 set libfile2 "shr2"
43 set srcfile ${srcdir}/${subdir}/${testfile}.c 39 set srcfile ${srcdir}/${subdir}/${testfile}.c
44 set lib1src ${srcdir}/${subdir}/${libfile1}.c 40 set lib1src ${srcdir}/${subdir}/${libfile1}.c
45 set lib2src ${srcdir}/${subdir}/${libfile2}.c 41 set lib2src ${srcdir}/${subdir}/${libfile2}.c
46 set lib1 ${objdir}/${subdir}/${libfile1}.sl 42 set lib1 ${objdir}/${subdir}/${libfile1}.sl
47 set lib2 ${objdir}/${subdir}/${libfile2}.sl 43 set lib2 ${objdir}/${subdir}/${libfile2}.sl
48 set binfile ${objdir}/${subdir}/${testfile} 44 set binfile ${objdir}/${subdir}/${testfile}
49 45
50 set lib_opts "debug" 46 set lib_opts "debug"
51 set exec_opts [list debug shlib=${lib1} shlib=${lib2}] 47 set exec_opts [list debug shlib=${lib1} shlib=${lib2}]
52 48
53 if [get_compiler_info ${binfile}] { 49 if [get_compiler_info] {
54 return -1 50 return -1
55 } 51 }
56 52
57 if { [gdb_compile_shlib ${lib1src} ${lib1} $lib_opts] != "" 53 if { [gdb_compile_shlib ${lib1src} ${lib1} $lib_opts] != ""
58 || [gdb_compile_shlib ${lib2src} ${lib2} $lib_opts] != "" 54 || [gdb_compile_shlib ${lib2src} ${lib2} $lib_opts] != ""
59 || [gdb_compile ${srcfile} ${binfile} executable $exec_opts] != ""} { 55 || [gdb_compile ${srcfile} ${binfile} executable $exec_opts] != ""} {
60 untested "Could not compile $lib1, $lib2, or $srcfile." 56 untested "Could not compile $lib1, $lib2, or $srcfile."
61 return -1 57 return -1
62 } 58 }
63 59
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 179
184 gdb_continue_to_end "" continue 1 180 gdb_continue_to_end "" continue 1
185 181
186 gdb_test "run" "Starting program:.*Breakpoint .,.*" \ 182 gdb_test "run" "Starting program:.*Breakpoint .,.*" \
187 "re-run to bp in shared library (PR's 16495, 18213)" 183 "re-run to bp in shared library (PR's 16495, 18213)"
188 184
189 gdb_continue_to_end "" continue 1 185 gdb_continue_to_end "" continue 1
190 } 186 }
191 187
192 return 0 188 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/setvar.exp ('k') | gdb/testsuite/gdb.base/shreloc.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698