1 # Copyright
2003 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
2 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
, write to the Free Software
15 # Foundation
, Inc.
, 59 Temple Place
- Suite
330, Boston
, MA
02111-1307, USA.
17 # Please email
any bugs
, comments
, and
/or additions to this file to
:
18 # bug
-gdb@prep.ai.mit.edu
20 # This file is part of the gdb testsuite
22 # This is intended to be a repository
for tests that partial symbols
23 # are working properly.
If multiple tests are added
, make sure that
24 # you exit and restart GDB between tests.
31 # test running programs
37 if { [skip_cplus_tests
] } { continue }
39 set testfile
"psymtab"
40 set binfile $
{objdir
}/$
{subdir
}/$
{testfile
}
42 if { [gdb_compile
"${srcdir}/${subdir}/${testfile}1.c" "${testfile}1.o" object {debug}] != "" } {
43 gdb_suppress_entire_file
"Testcase compile failed, so all tests in this file will automatically fail."
46 if { [gdb_compile
"${srcdir}/${subdir}/${testfile}2.c" "${testfile}2.o" object {debug}] != "" } {
47 gdb_suppress_entire_file
"Testcase compile failed, so all tests in this file will automatically fail."
50 if { [gdb_compile
"${testfile}1.o ${testfile}2.o" ${binfile} executable {debug}] != "" } {
51 gdb_suppress_entire_file
"Testcase compile failed, so all tests in this file will automatically fail."
54 # Create and source the file that provides information about the compiler
55 # used to
compile the test case.
56 if [get_compiler_info $
{binfile
}] {
62 gdb_reinitialize_dir $srcdir
/$subdir
65 # This test is looking
for a bug that manifested itself when GDB was
66 # looking
for a partial symbol such that there wasn
't such a partial
67 # symbol in the psymtab, but such that the last psym in the psymtab
68 # had the right name but the wrong namespace. Here, searching for
69 # zzz::dummy currently causes a search for 'zzz
' in STRUCT_NAMESPACE
70 # without a preceding search for 'zzz
' in VAR_NAMESPACE.
72 gdb_test "break zzz::dummy" "Can't find member of namespace
, class
, struct
, or union named
\"zzz
::dummy
\"\r\n.
*" "Don't search past end of psymtab."