]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/psymtab.exp
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / psymtab.exp
1 # Copyright 2003-2023 Free Software Foundation, Inc.
2
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.
7 #
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.
12 #
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/>.
15
16 # This file is part of the gdb testsuite
17
18 # This is intended to be a repository for tests that partial symbols
19 # are working properly. If multiple tests are added, make sure that
20 # you exit and restart GDB between tests.
21
22 #
23 # test running programs
24 #
25
26
27 if { [skip_cplus_tests] } { continue }
28
29 standard_testfile psymtab1.c psymtab2.c
30
31 if {[prepare_for_testing "failed to prepare" $testfile \
32 [list $srcfile $srcfile2] debug]} {
33 return -1
34 }
35
36 # Disable the prompt for whether to set pending breakpoints.
37 # We don't want a breakpoint, we just want to verify the symbol
38 # isn't found.
39 gdb_test_no_output "set breakpoint pending off" "psymtab pending setup"
40
41 # This test is looking for a bug that manifested itself when GDB was
42 # looking for a partial symbol such that there wasn't such a partial
43 # symbol in the psymtab, but such that the last psym in the psymtab
44 # had the right name but the wrong namespace. Here, searching for
45 # zzz::dummy currently causes a search for 'zzz' in STRUCT_NAMESPACE
46 # without a preceding search for 'zzz' in VAR_NAMESPACE.
47
48 gdb_test "break zzz::dummy" {Function "zzz::dummy" not defined\.} "Don't search past end of psymtab."