From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31720 invoked by alias); 22 Aug 2002 17:08:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31713 invoked from network); 22 Aug 2002 17:08:15 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 22 Aug 2002 17:08:15 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id g7MH89s10327; Thu, 22 Aug 2002 10:08:09 -0700 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: gdb-patches@sources.redhat.com Subject: Re: [rfa/testsuite] more tests in gdb.c++/m-static References: Cc: carlton@math.stanford.edu, mec@shout.net From: David Carlton Date: Thu, 22 Aug 2002 10:09:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-08/txt/msg00693.txt.bz2 --=-=-= Content-length: 913 In article , David Carlton writes: > I've added some tests to gdb.c++/m-static that correspond to the > patch in > ; > patches below. I've reworked these patches and the other two new testsuite files that I posted to be a little better behaved: now the main() functions all explicitly return 0, and they no longer set breakpoints based on line numbers. Here are the revised patches for m-static; I'll send revised patches for pr-574 and printmethod next. David Carlton carlton@math.stanford.edu 2002-08-20 David Carlton * gdb.c++/m-static.exp: Remove breakpoints depending on line numbers, and replace them by use of "next". Add test 4. * gdb.c++/m-static.cc: Add test 4. * gdb.c++/m-static.h: New file. * gdb.c++/m-static1.cc: New file. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=m-static.exp.diff Content-Description: patch for m-static.exp Content-length: 713 Index: m-static.cc =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/m-static.cc,v retrieving revision 1.1 diff -u -p -r1.1 m-static.cc --- m-static.cc 30 May 2002 19:09:47 -0000 1.1 +++ m-static.cc 22 Aug 2002 17:00:11 -0000 @@ -53,6 +53,10 @@ namespace __gnu_test template gnu_obj_2 gnu_obj_3::data(etruscan); + + // 2002-08-16 + // Test four. +#include "m-static.h" } // instantiate templates explicitly so their static members will exist @@ -67,6 +71,7 @@ int main() gnu_obj_1 test1(egyptian, 4589); gnu_obj_2 test2(roman); gnu_obj_3 test3(greek); + gnu_obj_4 test4; return 0; } --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=m-static.cc.diff Content-Description: patch for m-static.cc Content-length: 713 Index: m-static.cc =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/m-static.cc,v retrieving revision 1.1 diff -u -p -r1.1 m-static.cc --- m-static.cc 30 May 2002 19:09:47 -0000 1.1 +++ m-static.cc 16 Aug 2002 20:59:25 -0000 @@ -53,6 +53,10 @@ namespace __gnu_test template gnu_obj_2 gnu_obj_3::data(etruscan); + + // 2002-08-16 + // Test four. +#include "m-static.h" } // instantiate templates explicitly so their static members will exist @@ -67,6 +71,7 @@ int main() gnu_obj_1 test1(egyptian, 4589); gnu_obj_2 test2(roman); gnu_obj_3 test3(greek); + gnu_obj_4 test4; return 0; } --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=m-static.h.diff Content-Description: new file: m-static.h Content-length: 280 --- /dev/null Thu Apr 11 07:25:15 2002 +++ m-static.h Fri Aug 16 13:24:37 2002 @@ -0,0 +1,11 @@ +// 2002-08-16 + +class gnu_obj_4 +{ + public: + static const int elsewhere; + static const int nowhere; + // At some point, perhaps: + // static const int everywhere = 317; +}; + --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=m-static1.cc.diff Content-Description: new file: m-static1.cc Content-length: 236 --- /dev/null Thu Apr 11 07:25:15 2002 +++ m-static1.cc Fri Aug 16 13:11:02 2002 @@ -0,0 +1,9 @@ +// 2002-08-16 + +namespace __gnu_test { +#include "m-static.h" +} + +using namespace __gnu_test; + +const int gnu_obj_4::elsewhere = 221; --=-=-=--