]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
authorMichael Chastain <mec@google.com>
Wed, 10 Mar 2004 20:41:31 +0000 (20:41 +0000)
committerMichael Chastain <mec@google.com>
Wed, 10 Mar 2004 20:41:31 +0000 (20:41 +0000)
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  <mec.gnu@mindspring.com>

* 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  <mec.gnu@mindspring.com>

* gdb.cp/misc.cc: Add copyright notice.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/classes.exp
gdb/testsuite/gdb.cp/misc.cc

index 79d35d7dbc1fec1330f3994ecfd2d858e6dbf33d..00c11b45cb1c5b9a2b5f192638e982ac8033ad73 100644 (file)
@@ -1,3 +1,20 @@
+2004-03-09  Michael Chastain  <mec.gnu@mindspring.com>
+
+       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  <mec.gnu@mindspring.com>
+
+       * 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  <mec.gnu@mindspring.com>
+
+       * gdb.cp/misc.cc: Add copyright notice.
+
 2004-03-05  David Carlton  <carlton@kealia.com>
 
        * gdb.cp/rtti.exp: Add 'print *obj3' test.
index 12428be5d692bd6410c6dbfca53f6610295cac27..0b723e591f68fb3820a0a69674dd8b5ef02ea190 100644 (file)
@@ -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" \
index 286c02bc6df3200647bb610a60653ccfdc81063a..7d69ed225ae523c7c1586632231c25edbdc93751 100644 (file)
@@ -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  =======================