This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch/testsuite/cp] exception.cc: Add copyright notice


This patch adds a copyright notice to exception.cc.

I started adjusting the line numbers in exception.exp, but it's
chock full of line numbers.  Plus the line numbers occur over regular
expressions such as:

  ... throw location.*exception\\.cc:3\[68\]

So I just added a note to exception.exp saying that I busted it.

I could invoke the section of the FSF Programmer's Guide which says that
if you can't put a copyright notice inside a file, you can put it in
another file next to the first file.  Nah ...

It will all come out in the giant rewrite that is coming up next.

Testing: not tested.

Michael C

2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>

	* gdb.cp/exception.cc: Add copyright notice.
	* gdb.cp/exception.exp: Add a notice that this file is broken
	because of line number changes caused by addition of copyright
	notice.

Index: exception.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/exception.cc,v
retrieving revision 1.1
diff -c -3 -p -r1.1 exception.cc
*** exception.cc	9 Jan 2004 05:19:13 -0000	1.1
--- exception.cc	9 Jan 2004 05:34:52 -0000
***************
*** 1,3 ****
--- 1,24 ----
+ /* This testcase is part of GDB, the GNU debugger.
+ 
+    Copyright 1997, 1998 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  */
+ 
  // Test file for exception handling support.
  
  #include <iostream.h>
Index: exception.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/exception.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 exception.exp
*** exception.exp	9 Jan 2004 05:19:13 -0000	1.1
--- exception.exp	9 Jan 2004 05:34:52 -0000
***************
*** 1,4 ****
! # Copyright (C) 1997, 1998 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
--- 1,4 ----
! # Copyright 1997, 1998, 2004 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
***************
*** 16,21 ****
--- 16,25 ----
  
  # Please email any bugs, comments, and/or additions to this file to:
  # bug-gdb@prep.ai.mit.edu
+ 
+ # Note: every line number in this file is too low by 21,
+ # because I added a copyright notice to exception.cc.
+ # -- chastain 2004-01-08
  
  #
  # tests for exception-handling support


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]