From: Michael Chastain Date: Wed, 10 Mar 2004 20:41:31 +0000 (+0000) Subject: 2004-03-09 Michael Chastain X-Git-Tag: ezannoni_pie-20040323-branchpoint~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=832373b6daf71001bfd5771ffa4dab55ba8e794e;p=thirdparty%2Fbinutils-gdb.git 2004-03-09 Michael Chastain From Corinna Vinschen with modifications. * gdb.cp/classes.cc (enums1): Add a line to extend scope of local variable obj_with_enum. * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL results with obj_with_enum. 2004-03-09 Michael Chastain * gdb.cp/classes.cc: New file, copied from misc.cc. * gdb.cp/classes.exp: Use classes.cc rather than misc.cc. 2004-03-09 Michael Chastain * gdb.cp/misc.cc: Add copyright notice. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 79d35d7dbc1..00c11b45cb1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,20 @@ +2004-03-09 Michael Chastain + + From Corinna Vinschen with modifications. + * gdb.cp/classes.cc (enums1): Add a line to extend scope of + local variable obj_with_enum. + * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL + results with obj_with_enum. + +2004-03-09 Michael Chastain + + * gdb.cp/classes.cc: New file, copied from misc.cc. + * gdb.cp/classes.exp: Use classes.cc rather than misc.cc. + +2004-03-09 Michael Chastain + + * gdb.cp/misc.cc: Add copyright notice. + 2004-03-05 David Carlton * gdb.cp/rtti.exp: Add 'print *obj3' test. diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp index 12428be5d69..0b723e591f6 100644 --- a/gdb/testsuite/gdb.cp/classes.exp +++ b/gdb/testsuite/gdb.cp/classes.exp @@ -27,7 +27,7 @@ if $tracelevel then { if { [skip_cplus_tests] } { continue } -set testfile "misc" +set testfile "classes" set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} @@ -633,11 +633,6 @@ proc test_enums {} { gdb_test "next" "" - # TODO: with gcc HEAD 2003-12-28 21:08:30 UTC -gdwarf-2, - # gdb says that obj_with_enum is out of scope here and the - # tests after this FAIL. This needs investigation. - # -- chastain 2003-12-30 - # print the object again gdb_test "print obj_with_enum" \ diff --git a/gdb/testsuite/gdb.cp/misc.cc b/gdb/testsuite/gdb.cp/misc.cc index 286c02bc6df..7d69ed225ae 100644 --- a/gdb/testsuite/gdb.cp/misc.cc +++ b/gdb/testsuite/gdb.cp/misc.cc @@ -1,3 +1,23 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 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. + */ + // Test various -*- C++ -*- things. // ====================== basic C++ types =======================