1 Index: gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.c
2 ===================================================================
4 +++ gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.c
6 +/* Copyright (C) 2012 Free Software Foundation, Inc.
8 + This file is part of GDB.
10 + This program is free software; you can redistribute it and/or modify
11 + it under the terms of the GNU General Public License as published by
12 + the Free Software Foundation; either version 3 of the License, or
13 + (at your option) any later version.
15 + This program is distributed in the hope that it will be useful,
16 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 + GNU General Public License for more details.
20 + You should have received a copy of the GNU General Public License
21 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
27 +main (int argc, char *argv[])
29 + printf ("Hello, World.\n");
32 Index: gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.exp
33 ===================================================================
35 +++ gdb-7.0.1/gdb/testsuite/gdb.base/set-solib-absolute-prefix.exp
37 +# Copyright 2012 Free Software Foundation, Inc.
39 +# This program is free software; you can redistribute it and/or modify
40 +# it under the terms of the GNU General Public License as published by
41 +# the Free Software Foundation; either version 3 of the License, or
42 +# (at your option) any later version.
44 +# This program is distributed in the hope that it will be useful,
45 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
46 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 +# GNU General Public License for more details.
49 +# You should have received a copy of the GNU General Public License
50 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
52 +set testfile "set-solib-absolute-prefix"
53 +set srcfile ${testfile}.c
55 +# It is necessary to verify if the binary is 32-bit, so that the system
56 +# call `__kernel_vsyscall' originates from vDSO.
58 +if { ![is_ilp32_target] } {
62 +if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
66 +if { ![runto_main] } {
70 +gdb_test "continue" "Program received signal SIGABRT, Aborted.*" \
71 + "continue until abort"
72 +gdb_test "set solib-absolute-prefix /BOGUS_DIRECT" \
73 + ".*warning: Unable to find dynamic linker breakpoint function.*" \
74 + "set solib-absolute-prefix"
75 +gdb_test "bt" "__kernel_vsyscall.*" "backtrace with __kernel_vsyscall"