diff options
author | Michael Chastain <mec@google.com> | 2001-01-30 02:49:36 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2001-01-30 02:49:36 +0000 |
commit | c9049fc98f3281433941016016242a57577f5f10 (patch) | |
tree | cf9505c614b37ac0e20be75013c03fd9d7403a97 /gdb/testsuite/gdb.base/structs3.exp | |
parent | 9add9c04bdf2c48bec05ba8eb2883c395e08b5ca (diff) | |
download | gdb-c9049fc98f3281433941016016242a57577f5f10.zip gdb-c9049fc98f3281433941016016242a57577f5f10.tar.gz gdb-c9049fc98f3281433941016016242a57577f5f10.tar.bz2 |
2001-01-29 Michael Chastain <chastain@redhat.com>
* symtab.c (block_lookup_symbol): Use 'namespace' parameter in
symbol comparisons in binary search.
Diffstat (limited to 'gdb/testsuite/gdb.base/structs3.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/structs3.exp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/structs3.exp b/gdb/testsuite/gdb.base/structs3.exp new file mode 100644 index 0000000..8984ddd --- /dev/null +++ b/gdb/testsuite/gdb.base/structs3.exp @@ -0,0 +1,55 @@ +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# Written by Michael Chastain <chastain@redhat.com> +# This is gdb-gnats gdb/15. + +if $tracelevel then { + strace $tracelevel +} + +set prms_id 0 +set bug_id 0 + +set testfile "structs3" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +# build the first test case +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." +} + +# Start with a fresh gdb. + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +if { ![runto_main] } then { + perror "couldn't run to breakpoint" + continue +} + +gdb_test "ptype tag_00" "type.*=.*struct.*tag_00.*incomplete type.*int.*" + +# End of tests. + +gdb_continue_to_end "finish program" |