[rfa/copyright] add copyrights to gdb.mi/pthreads.c, gdb.threads/pthreads.c

Michael Elizabeth Chastain
2003-10-21T18:49:32Z

This patch adds copyright notices to testsuite/gdb.threads/pthreads.c
and testsuite/gdb.mi/pthreads.c, in accordance with FSF policy:

http://www.gnu.org/prep/maintain_8.html#SEC8

(I want to do this because I have additional changes for pthreads.c.
I want to change the "sleep" calls to check the return value so
that they work properly with gdb. There is a known issue with
calling "sleep" in a multi-threaded program under gdb -- the "sleep"
often returns early, which is legal, but is different behavior
than non-gdb. But even if my additional changes are not accepted,
these files still need copyright notices. That's why I am submitting
this patch first.)

History of these files: gdb.threads/pthreads.c was the original file.
It was created by shebs, and edited by chastain, cagney, ezannoni,
and carlton. gdb.mi/pthreads.c was cloned from gdb.threads/pthreads.c
by kseitz, and was edited by kseitz, carlton, and ezannoni.
All of these people have gdb assignments on file and have made
many other contributions to gdb.

Testing: tested on native i686-pc-linux-gnu, red hat 8.0,
gcc v2 and v3, dwarf-2 and stabs+, just to make sure that
I didn't break some line number dependency in some *.exp file.

Michael S is the maintainer for gdb.threads.
Elena and Andrew are maintainers for gdb.mi.

Okay to commit?

Michael C

===

2003-10-21 Michael Chastain <mec@shout.net>

* gdb.mi/pthreads.c: Add copyright notice.
* gdb.threads/pthreads.c: Add copyright notice.

Index: gdb.mi/pthreads.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/pthreads.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 pthreads.c
*** gdb.mi/pthreads.c 7 Aug 2003 17:48:32 -0000 1.3
--- gdb.mi/pthreads.c 21 Oct 2003 16:58:31 -0000
***************
*** 1,3 ****
--- 1,24 ----
+ /* Copyright 2002, 2003 Free Software Foundation, Inc.
+
+ This file is part of the gdb testsuite.
+
+ 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.
+
+ This file was copied from gdb.threads/pthreads.c
+ by Keith Seitz (keiths@redhat.com). */
+
#include <stdio.h>
#include <pthread.h>

Index: gdb.threads/pthreads.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/pthreads.c,v
retrieving revision 1.4
diff -c -3 -p -r1.4 pthreads.c
*** gdb.threads/pthreads.c 7 Aug 2003 17:48:32 -0000 1.4
--- gdb.threads/pthreads.c 21 Oct 2003 16:58:31 -0000
***************
*** 1,3 ****
--- 1,22 ----
+ /* Copyright 1999, 2002, 2003 Free Software Foundation, Inc.
+
+ This file is part of the gdb testsuite.
+
+ 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.
+ */
+
#include <stdio.h>
#include <pthread.h>