1 # Copyright 2012-2016 Free Software Foundation, Inc.
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
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
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/>.
18 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
24 # At least some versions of Fedora/RHEL glibc have local patches that
25 # hide the vDSO. This lines re-exposes it. See PR libc/13097,
26 # comment 2. There's no support for passing environment variables in
27 # the remote protocol, but that's OK -- if we're testing against a
28 # glibc that doesn't list the vDSO without this, the test should still
30 gdb_test_no_output "set environment LD_DEBUG=unused"
34 set test "stop without warning"
35 gdb_test_multiple "" $test {
36 -re "Could not load shared library symbols .*\r\n$gdb_prompt $" {
39 -re "\r\nBreakpoint \[0-9\]+, main .*\r\n$gdb_prompt $" {
44 # Extra testing in case the warning changes and we miss updating the
46 set test "no vdso without symbols is listed"
47 gdb_test_multiple "info shared" $test {
48 -re "No\[^\r\n\]+linux-(vdso|gate).*$gdb_prompt $" {