9f3a6dcf2e831cfe6d707d529c491256186e3cfb
[platform/upstream/binutils.git] / gdb / COPYING
1
2                     GDB GENERAL PUBLIC LICENSE
3                     (Clarified 20 March 1987)
4
5  Copyright (C) 1986 Richard M. Stallman
6  Everyone is permitted to copy and distribute verbatim copies
7  of this license, but changing it is not allowed.
8
9   The license agreements of most software companies keep you at the
10 mercy of those companies.  By contrast, our general public license is
11 intended to give everyone the right to share GDB.  To make sure that
12 you get the rights we want you to have, we need to make restrictions
13 that forbid anyone to deny you these rights or to ask you to surrender
14 the rights.  Hence this license agreement.
15
16   Specifically, we want to make sure that you have the right to give
17 away copies of GDB, that you receive source code or else can get it
18 if you want it, that you can change GDB or use pieces of it in new
19 free programs, and that you know you can do these things.
20
21   To make sure that everyone has such rights, we have to forbid you to
22 deprive anyone else of these rights.  For example, if you distribute
23 copies of GDB, you must give the recipients all the rights that you
24 have.  You must make sure that they, too, receive or can get the
25 source code.  And you must tell them their rights.
26
27   Also, for our own protection, we must make certain that everyone
28 finds out that there is no warranty for GDB.  If GDB is modified by
29 someone else and passed on, we want its recipients to know that what
30 they have is not what we distributed, so that any problems introduced
31 by others will not reflect on our reputation.
32
33   Therefore we (Richard Stallman and the Free Software Foundation,
34 Inc.) make the following terms which say what you must do to be
35 allowed to distribute or change GDB.
36
37
38                         COPYING POLICIES
39
40   1. You may copy and distribute verbatim copies of GDB source code as
41 you receive it, in any medium, provided that you conspicuously and
42 appropriately publish on each copy a valid copyright notice "Copyright
43 (C) 1986 Free Software Foundation, Inc." (or with the year updated if
44 that is appropriate); keep intact the notices on all files that refer
45 to this License Agreement and to the absence of any warranty; and give
46 any other recipients of the GDB program a copy of this License
47 Agreement along with the program.  You may charge a distribution fee
48 for the physical act of transferring a copy.
49
50   2. You may modify your copy or copies of GDB or any portion of it,
51 and copy and distribute such modifications under the terms of
52 Paragraph 1 above, provided that you also do the following:
53
54     a) cause the modified files to carry prominent notices stating
55     that you changed the files and the date of any change; and
56
57     b) cause the whole of any work that you distribute or publish,
58     that in whole or in part contains or is a derivative of GDB or any
59     part thereof, to be licensed at no charge to all third parties on
60     terms identical to those contained in this License Agreement
61     (except that you may choose to grant more extensive warranty
62     protection to third parties, at your option).
63
64     c) if the modified program serves as a debugger, cause it
65     when started running in the simplest and usual way, to print
66     an announcement including a valid copyright notice
67     "Copyright (C) 1986 Free Software Foundation, Inc." (or with
68     the year updated if appropriate), saying that there
69     is no warranty (or else, saying that you provide
70     a warranty) and that users may redistribute the program under
71     these conditions, and telling the user how to view a copy of
72     this License Agreement.
73
74     d) You may charge a distribution fee for the physical act of
75     transferring a copy, and you may at your option offer warranty
76     protection in exchange for a fee.
77
78   3. You may copy and distribute GDB or any portion of it in
79 compiled, executable or object code form under the terms of Paragraphs
80 1 and 2 above provided that you do the following:
81
82     a) cause each such copy to be accompanied by the
83     corresponding machine-readable source code, which must
84     be distributed under the terms of Paragraphs 1 and 2 above; or,
85
86     b) cause each such copy to be accompanied by a
87     written offer, with no time limit, to give any third party
88     free (except for a nominal shipping charge) a machine readable
89     copy of the corresponding source code, to be distributed
90     under the terms of Paragraphs 1 and 2 above; or,
91
92     c) in the case of a recipient of GDB in compiled, executable
93     or object code form (without the corresponding source code) you
94     shall cause copies you distribute to be accompanied by a copy
95     of the written offer of source code which you received along
96     with the copy you received.
97
98   4. You may not copy, sublicense, distribute or transfer GDB
99 except as expressly provided under this License Agreement.  Any attempt
100 otherwise to copy, sublicense, distribute or transfer GDB is void and
101 your rights to use the program under this License agreement shall be
102 automatically terminated.  However, parties who have received computer
103 software programs from you with this License Agreement will not have
104 their licenses terminated so long as such parties remain in full compliance.
105
106   5. If you wish to incorporate parts of GDB into other free
107 programs whose distribution conditions are different, write to the Free
108 Software Foundation at 675 Mass Ave, Cambridge, MA 02139.  We have not yet
109 worked out a simple rule that can be stated here, but we will often permit
110 this.  We will be guided by the two goals of preserving the free status of
111 all derivatives of our free software and of promoting the sharing and reuse
112 of software.
113
114 In other words, go ahead and share GDB, but don't try to stop
115 anyone else from sharing it farther.  Help stamp out software hoarding!
116
117                        NO WARRANTY
118
119   BECAUSE GDB IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY NO
120 WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
121 WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC,
122 RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE GDB "AS IS" WITHOUT
123 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
124 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
125 A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND
126 PERFORMANCE OF GDB IS WITH YOU.  SHOULD GDB PROVE DEFECTIVE, YOU
127 ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
128
129  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M.
130 STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., AND/OR ANY OTHER PARTY
131 WHO MAY MODIFY AND REDISTRIBUTE GDB AS PERMITTED ABOVE, BE LIABLE TO
132 YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER
133 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
134 INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
135 BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A
136 FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) GDB, EVEN
137 IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR
138 ANY CLAIM BY ANY OTHER PARTY.