OLD | NEW |
1 # Copyright 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2007-2012 Free Software Foundation, Inc. |
2 # This program is free software; you can redistribute it and/or modify | 2 # This program is free software; you can redistribute it and/or modify |
3 # it under the terms of the GNU General Public License as published by | 3 # it under the terms of the GNU General Public License as published by |
4 # the Free Software Foundation; either version 3 of the License, or | 4 # the Free Software Foundation; either version 3 of the License, or |
5 # (at your option) any later version. | 5 # (at your option) any later version. |
6 # | 6 # |
7 # This program is distributed in the hope that it will be useful, | 7 # This program is distributed in the hope that it will be useful, |
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 # GNU General Public License for more details. | 10 # GNU General Public License for more details. |
(...skipping 12 matching lines...) Expand all Loading... |
23 set libname "solib-symbol-lib" | 23 set libname "solib-symbol-lib" |
24 set srcfile_lib ${srcdir}/${subdir}/${libname}.c | 24 set srcfile_lib ${srcdir}/${subdir}/${libname}.c |
25 set binfile_lib ${objdir}/${subdir}/${libname}.so | 25 set binfile_lib ${objdir}/${subdir}/${libname}.so |
26 set lib_flags [list debug ldflags=-Wl,-Bsymbolic] | 26 set lib_flags [list debug ldflags=-Wl,-Bsymbolic] |
27 # Binary file. | 27 # Binary file. |
28 set testfile "solib-symbol-main" | 28 set testfile "solib-symbol-main" |
29 set srcfile ${srcdir}/${subdir}/${testfile}.c | 29 set srcfile ${srcdir}/${subdir}/${testfile}.c |
30 set binfile ${objdir}/${subdir}/${testfile} | 30 set binfile ${objdir}/${subdir}/${testfile} |
31 set bin_flags [list debug shlib=${binfile_lib}] | 31 set bin_flags [list debug shlib=${binfile_lib}] |
32 | 32 |
33 if [get_compiler_info ${binfile}] { | 33 if [get_compiler_info] { |
34 return -1 | 34 return -1 |
35 } | 35 } |
36 | 36 |
37 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" | 37 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" |
38 || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } { | 38 || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } { |
39 untested "Could not compile $binfile_lib or $binfile." | 39 untested "Could not compile $binfile_lib or $binfile." |
40 return -1 | 40 return -1 |
41 } | 41 } |
42 | 42 |
43 gdb_exit | 43 gdb_exit |
(...skipping 26 matching lines...) Expand all Loading... |
70 # This symbol is now looked up in the ELF library and the binary. | 70 # This symbol is now looked up in the ELF library and the binary. |
71 gdb_test "br foo2" \ | 71 gdb_test "br foo2" \ |
72 "Breakpoint.*: foo2. .2 locations..*" \ | 72 "Breakpoint.*: foo2. .2 locations..*" \ |
73 "foo2 in mdlib" | 73 "foo2 in mdlib" |
74 | 74 |
75 gdb_exit | 75 gdb_exit |
76 | 76 |
77 return 0 | 77 return 0 |
78 | 78 |
79 | 79 |
OLD | NEW |