copying.c 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. /* ==> Do not modify this file!! -*- buffer-read-only: t -*- vi:set ro:
  2. It is created automatically by copying.awk.
  3. Modify copying.awk instead. <== */
  4. #include "defs.h"
  5. #include "command.h"
  6. #include "gdbcmd.h"
  7. static void show_copying_command (const char *, int);
  8. static void show_warranty_command (const char *, int);
  9. static void
  10. show_copying_command (const char *ignore, int from_tty)
  11. {
  12. gdb_printf (" GNU GENERAL PUBLIC LICENSE\n");
  13. gdb_printf (" Version 3, 29 June 2007\n");
  14. gdb_printf ("\n");
  15. gdb_printf (" Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n");
  16. gdb_printf (" Everyone is permitted to copy and distribute verbatim copies\n");
  17. gdb_printf (" of this license document, but changing it is not allowed.\n");
  18. gdb_printf ("\n");
  19. gdb_printf (" Preamble\n");
  20. gdb_printf ("\n");
  21. gdb_printf (" The GNU General Public License is a free, copyleft license for\n");
  22. gdb_printf ("software and other kinds of works.\n");
  23. gdb_printf ("\n");
  24. gdb_printf (" The licenses for most software and other practical works are designed\n");
  25. gdb_printf ("to take away your freedom to share and change the works. By contrast,\n");
  26. gdb_printf ("the GNU General Public License is intended to guarantee your freedom to\n");
  27. gdb_printf ("share and change all versions of a program--to make sure it remains free\n");
  28. gdb_printf ("software for all its users. We, the Free Software Foundation, use the\n");
  29. gdb_printf ("GNU General Public License for most of our software; it applies also to\n");
  30. gdb_printf ("any other work released this way by its authors. You can apply it to\n");
  31. gdb_printf ("your programs, too.\n");
  32. gdb_printf ("\n");
  33. gdb_printf (" When we speak of free software, we are referring to freedom, not\n");
  34. gdb_printf ("price. Our General Public Licenses are designed to make sure that you\n");
  35. gdb_printf ("have the freedom to distribute copies of free software (and charge for\n");
  36. gdb_printf ("them if you wish), that you receive source code or can get it if you\n");
  37. gdb_printf ("want it, that you can change the software or use pieces of it in new\n");
  38. gdb_printf ("free programs, and that you know you can do these things.\n");
  39. gdb_printf ("\n");
  40. gdb_printf (" To protect your rights, we need to prevent others from denying you\n");
  41. gdb_printf ("these rights or asking you to surrender the rights. Therefore, you have\n");
  42. gdb_printf ("certain responsibilities if you distribute copies of the software, or if\n");
  43. gdb_printf ("you modify it: responsibilities to respect the freedom of others.\n");
  44. gdb_printf ("\n");
  45. gdb_printf (" For example, if you distribute copies of such a program, whether\n");
  46. gdb_printf ("gratis or for a fee, you must pass on to the recipients the same\n");
  47. gdb_printf ("freedoms that you received. You must make sure that they, too, receive\n");
  48. gdb_printf ("or can get the source code. And you must show them these terms so they\n");
  49. gdb_printf ("know their rights.\n");
  50. gdb_printf ("\n");
  51. gdb_printf (" Developers that use the GNU GPL protect your rights with two steps:\n");
  52. gdb_printf ("(1) assert copyright on the software, and (2) offer you this License\n");
  53. gdb_printf ("giving you legal permission to copy, distribute and/or modify it.\n");
  54. gdb_printf ("\n");
  55. gdb_printf (" For the developers' and authors' protection, the GPL clearly explains\n");
  56. gdb_printf ("that there is no warranty for this free software. For both users' and\n");
  57. gdb_printf ("authors' sake, the GPL requires that modified versions be marked as\n");
  58. gdb_printf ("changed, so that their problems will not be attributed erroneously to\n");
  59. gdb_printf ("authors of previous versions.\n");
  60. gdb_printf ("\n");
  61. gdb_printf (" Some devices are designed to deny users access to install or run\n");
  62. gdb_printf ("modified versions of the software inside them, although the manufacturer\n");
  63. gdb_printf ("can do so. This is fundamentally incompatible with the aim of\n");
  64. gdb_printf ("protecting users' freedom to change the software. The systematic\n");
  65. gdb_printf ("pattern of such abuse occurs in the area of products for individuals to\n");
  66. gdb_printf ("use, which is precisely where it is most unacceptable. Therefore, we\n");
  67. gdb_printf ("have designed this version of the GPL to prohibit the practice for those\n");
  68. gdb_printf ("products. If such problems arise substantially in other domains, we\n");
  69. gdb_printf ("stand ready to extend this provision to those domains in future versions\n");
  70. gdb_printf ("of the GPL, as needed to protect the freedom of users.\n");
  71. gdb_printf ("\n");
  72. gdb_printf (" Finally, every program is threatened constantly by software patents.\n");
  73. gdb_printf ("States should not allow patents to restrict development and use of\n");
  74. gdb_printf ("software on general-purpose computers, but in those that do, we wish to\n");
  75. gdb_printf ("avoid the special danger that patents applied to a free program could\n");
  76. gdb_printf ("make it effectively proprietary. To prevent this, the GPL assures that\n");
  77. gdb_printf ("patents cannot be used to render the program non-free.\n");
  78. gdb_printf ("\n");
  79. gdb_printf (" The precise terms and conditions for copying, distribution and\n");
  80. gdb_printf ("modification follow.\n");
  81. gdb_printf ("\n");
  82. gdb_printf (" TERMS AND CONDITIONS\n");
  83. gdb_printf ("\n");
  84. gdb_printf (" 0. Definitions.\n");
  85. gdb_printf ("\n");
  86. gdb_printf (" \"This License\" refers to version 3 of the GNU General Public License.\n");
  87. gdb_printf ("\n");
  88. gdb_printf (" \"Copyright\" also means copyright-like laws that apply to other kinds of\n");
  89. gdb_printf ("works, such as semiconductor masks.\n");
  90. gdb_printf ("\n");
  91. gdb_printf (" \"The Program\" refers to any copyrightable work licensed under this\n");
  92. gdb_printf ("License. Each licensee is addressed as \"you\". \"Licensees\" and\n");
  93. gdb_printf ("\"recipients\" may be individuals or organizations.\n");
  94. gdb_printf ("\n");
  95. gdb_printf (" To \"modify\" a work means to copy from or adapt all or part of the work\n");
  96. gdb_printf ("in a fashion requiring copyright permission, other than the making of an\n");
  97. gdb_printf ("exact copy. The resulting work is called a \"modified version\" of the\n");
  98. gdb_printf ("earlier work or a work \"based on\" the earlier work.\n");
  99. gdb_printf ("\n");
  100. gdb_printf (" A \"covered work\" means either the unmodified Program or a work based\n");
  101. gdb_printf ("on the Program.\n");
  102. gdb_printf ("\n");
  103. gdb_printf (" To \"propagate\" a work means to do anything with it that, without\n");
  104. gdb_printf ("permission, would make you directly or secondarily liable for\n");
  105. gdb_printf ("infringement under applicable copyright law, except executing it on a\n");
  106. gdb_printf ("computer or modifying a private copy. Propagation includes copying,\n");
  107. gdb_printf ("distribution (with or without modification), making available to the\n");
  108. gdb_printf ("public, and in some countries other activities as well.\n");
  109. gdb_printf ("\n");
  110. gdb_printf (" To \"convey\" a work means any kind of propagation that enables other\n");
  111. gdb_printf ("parties to make or receive copies. Mere interaction with a user through\n");
  112. gdb_printf ("a computer network, with no transfer of a copy, is not conveying.\n");
  113. gdb_printf ("\n");
  114. gdb_printf (" An interactive user interface displays \"Appropriate Legal Notices\"\n");
  115. gdb_printf ("to the extent that it includes a convenient and prominently visible\n");
  116. gdb_printf ("feature that (1) displays an appropriate copyright notice, and (2)\n");
  117. gdb_printf ("tells the user that there is no warranty for the work (except to the\n");
  118. gdb_printf ("extent that warranties are provided), that licensees may convey the\n");
  119. gdb_printf ("work under this License, and how to view a copy of this License. If\n");
  120. gdb_printf ("the interface presents a list of user commands or options, such as a\n");
  121. gdb_printf ("menu, a prominent item in the list meets this criterion.\n");
  122. gdb_printf ("\n");
  123. gdb_printf (" 1. Source Code.\n");
  124. gdb_printf ("\n");
  125. gdb_printf (" The \"source code\" for a work means the preferred form of the work\n");
  126. gdb_printf ("for making modifications to it. \"Object code\" means any non-source\n");
  127. gdb_printf ("form of a work.\n");
  128. gdb_printf ("\n");
  129. gdb_printf (" A \"Standard Interface\" means an interface that either is an official\n");
  130. gdb_printf ("standard defined by a recognized standards body, or, in the case of\n");
  131. gdb_printf ("interfaces specified for a particular programming language, one that\n");
  132. gdb_printf ("is widely used among developers working in that language.\n");
  133. gdb_printf ("\n");
  134. gdb_printf (" The \"System Libraries\" of an executable work include anything, other\n");
  135. gdb_printf ("than the work as a whole, that (a) is included in the normal form of\n");
  136. gdb_printf ("packaging a Major Component, but which is not part of that Major\n");
  137. gdb_printf ("Component, and (b) serves only to enable use of the work with that\n");
  138. gdb_printf ("Major Component, or to implement a Standard Interface for which an\n");
  139. gdb_printf ("implementation is available to the public in source code form. A\n");
  140. gdb_printf ("\"Major Component\", in this context, means a major essential component\n");
  141. gdb_printf ("(kernel, window system, and so on) of the specific operating system\n");
  142. gdb_printf ("(if any) on which the executable work runs, or a compiler used to\n");
  143. gdb_printf ("produce the work, or an object code interpreter used to run it.\n");
  144. gdb_printf ("\n");
  145. gdb_printf (" The \"Corresponding Source\" for a work in object code form means all\n");
  146. gdb_printf ("the source code needed to generate, install, and (for an executable\n");
  147. gdb_printf ("work) run the object code and to modify the work, including scripts to\n");
  148. gdb_printf ("control those activities. However, it does not include the work's\n");
  149. gdb_printf ("System Libraries, or general-purpose tools or generally available free\n");
  150. gdb_printf ("programs which are used unmodified in performing those activities but\n");
  151. gdb_printf ("which are not part of the work. For example, Corresponding Source\n");
  152. gdb_printf ("includes interface definition files associated with source files for\n");
  153. gdb_printf ("the work, and the source code for shared libraries and dynamically\n");
  154. gdb_printf ("linked subprograms that the work is specifically designed to require,\n");
  155. gdb_printf ("such as by intimate data communication or control flow between those\n");
  156. gdb_printf ("subprograms and other parts of the work.\n");
  157. gdb_printf ("\n");
  158. gdb_printf (" The Corresponding Source need not include anything that users\n");
  159. gdb_printf ("can regenerate automatically from other parts of the Corresponding\n");
  160. gdb_printf ("Source.\n");
  161. gdb_printf ("\n");
  162. gdb_printf (" The Corresponding Source for a work in source code form is that\n");
  163. gdb_printf ("same work.\n");
  164. gdb_printf ("\n");
  165. gdb_printf (" 2. Basic Permissions.\n");
  166. gdb_printf ("\n");
  167. gdb_printf (" All rights granted under this License are granted for the term of\n");
  168. gdb_printf ("copyright on the Program, and are irrevocable provided the stated\n");
  169. gdb_printf ("conditions are met. This License explicitly affirms your unlimited\n");
  170. gdb_printf ("permission to run the unmodified Program. The output from running a\n");
  171. gdb_printf ("covered work is covered by this License only if the output, given its\n");
  172. gdb_printf ("content, constitutes a covered work. This License acknowledges your\n");
  173. gdb_printf ("rights of fair use or other equivalent, as provided by copyright law.\n");
  174. gdb_printf ("\n");
  175. gdb_printf (" You may make, run and propagate covered works that you do not\n");
  176. gdb_printf ("convey, without conditions so long as your license otherwise remains\n");
  177. gdb_printf ("in force. You may convey covered works to others for the sole purpose\n");
  178. gdb_printf ("of having them make modifications exclusively for you, or provide you\n");
  179. gdb_printf ("with facilities for running those works, provided that you comply with\n");
  180. gdb_printf ("the terms of this License in conveying all material for which you do\n");
  181. gdb_printf ("not control copyright. Those thus making or running the covered works\n");
  182. gdb_printf ("for you must do so exclusively on your behalf, under your direction\n");
  183. gdb_printf ("and control, on terms that prohibit them from making any copies of\n");
  184. gdb_printf ("your copyrighted material outside their relationship with you.\n");
  185. gdb_printf ("\n");
  186. gdb_printf (" Conveying under any other circumstances is permitted solely under\n");
  187. gdb_printf ("the conditions stated below. Sublicensing is not allowed; section 10\n");
  188. gdb_printf ("makes it unnecessary.\n");
  189. gdb_printf ("\n");
  190. gdb_printf (" 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n");
  191. gdb_printf ("\n");
  192. gdb_printf (" No covered work shall be deemed part of an effective technological\n");
  193. gdb_printf ("measure under any applicable law fulfilling obligations under article\n");
  194. gdb_printf ("11 of the WIPO copyright treaty adopted on 20 December 1996, or\n");
  195. gdb_printf ("similar laws prohibiting or restricting circumvention of such\n");
  196. gdb_printf ("measures.\n");
  197. gdb_printf ("\n");
  198. gdb_printf (" When you convey a covered work, you waive any legal power to forbid\n");
  199. gdb_printf ("circumvention of technological measures to the extent such circumvention\n");
  200. gdb_printf ("is effected by exercising rights under this License with respect to\n");
  201. gdb_printf ("the covered work, and you disclaim any intention to limit operation or\n");
  202. gdb_printf ("modification of the work as a means of enforcing, against the work's\n");
  203. gdb_printf ("users, your or third parties' legal rights to forbid circumvention of\n");
  204. gdb_printf ("technological measures.\n");
  205. gdb_printf ("\n");
  206. gdb_printf (" 4. Conveying Verbatim Copies.\n");
  207. gdb_printf ("\n");
  208. gdb_printf (" You may convey verbatim copies of the Program's source code as you\n");
  209. gdb_printf ("receive it, in any medium, provided that you conspicuously and\n");
  210. gdb_printf ("appropriately publish on each copy an appropriate copyright notice;\n");
  211. gdb_printf ("keep intact all notices stating that this License and any\n");
  212. gdb_printf ("non-permissive terms added in accord with section 7 apply to the code;\n");
  213. gdb_printf ("keep intact all notices of the absence of any warranty; and give all\n");
  214. gdb_printf ("recipients a copy of this License along with the Program.\n");
  215. gdb_printf ("\n");
  216. gdb_printf (" You may charge any price or no price for each copy that you convey,\n");
  217. gdb_printf ("and you may offer support or warranty protection for a fee.\n");
  218. gdb_printf ("\n");
  219. gdb_printf (" 5. Conveying Modified Source Versions.\n");
  220. gdb_printf ("\n");
  221. gdb_printf (" You may convey a work based on the Program, or the modifications to\n");
  222. gdb_printf ("produce it from the Program, in the form of source code under the\n");
  223. gdb_printf ("terms of section 4, provided that you also meet all of these conditions:\n");
  224. gdb_printf ("\n");
  225. gdb_printf (" a) The work must carry prominent notices stating that you modified\n");
  226. gdb_printf (" it, and giving a relevant date.\n");
  227. gdb_printf ("\n");
  228. gdb_printf (" b) The work must carry prominent notices stating that it is\n");
  229. gdb_printf (" released under this License and any conditions added under section\n");
  230. gdb_printf (" 7. This requirement modifies the requirement in section 4 to\n");
  231. gdb_printf (" \"keep intact all notices\".\n");
  232. gdb_printf ("\n");
  233. gdb_printf (" c) You must license the entire work, as a whole, under this\n");
  234. gdb_printf (" License to anyone who comes into possession of a copy. This\n");
  235. gdb_printf (" License will therefore apply, along with any applicable section 7\n");
  236. gdb_printf (" additional terms, to the whole of the work, and all its parts,\n");
  237. gdb_printf (" regardless of how they are packaged. This License gives no\n");
  238. gdb_printf (" permission to license the work in any other way, but it does not\n");
  239. gdb_printf (" invalidate such permission if you have separately received it.\n");
  240. gdb_printf ("\n");
  241. gdb_printf (" d) If the work has interactive user interfaces, each must display\n");
  242. gdb_printf (" Appropriate Legal Notices; however, if the Program has interactive\n");
  243. gdb_printf (" interfaces that do not display Appropriate Legal Notices, your\n");
  244. gdb_printf (" work need not make them do so.\n");
  245. gdb_printf ("\n");
  246. gdb_printf (" A compilation of a covered work with other separate and independent\n");
  247. gdb_printf ("works, which are not by their nature extensions of the covered work,\n");
  248. gdb_printf ("and which are not combined with it such as to form a larger program,\n");
  249. gdb_printf ("in or on a volume of a storage or distribution medium, is called an\n");
  250. gdb_printf ("\"aggregate\" if the compilation and its resulting copyright are not\n");
  251. gdb_printf ("used to limit the access or legal rights of the compilation's users\n");
  252. gdb_printf ("beyond what the individual works permit. Inclusion of a covered work\n");
  253. gdb_printf ("in an aggregate does not cause this License to apply to the other\n");
  254. gdb_printf ("parts of the aggregate.\n");
  255. gdb_printf ("\n");
  256. gdb_printf (" 6. Conveying Non-Source Forms.\n");
  257. gdb_printf ("\n");
  258. gdb_printf (" You may convey a covered work in object code form under the terms\n");
  259. gdb_printf ("of sections 4 and 5, provided that you also convey the\n");
  260. gdb_printf ("machine-readable Corresponding Source under the terms of this License,\n");
  261. gdb_printf ("in one of these ways:\n");
  262. gdb_printf ("\n");
  263. gdb_printf (" a) Convey the object code in, or embodied in, a physical product\n");
  264. gdb_printf (" (including a physical distribution medium), accompanied by the\n");
  265. gdb_printf (" Corresponding Source fixed on a durable physical medium\n");
  266. gdb_printf (" customarily used for software interchange.\n");
  267. gdb_printf ("\n");
  268. gdb_printf (" b) Convey the object code in, or embodied in, a physical product\n");
  269. gdb_printf (" (including a physical distribution medium), accompanied by a\n");
  270. gdb_printf (" written offer, valid for at least three years and valid for as\n");
  271. gdb_printf (" long as you offer spare parts or customer support for that product\n");
  272. gdb_printf (" model, to give anyone who possesses the object code either (1) a\n");
  273. gdb_printf (" copy of the Corresponding Source for all the software in the\n");
  274. gdb_printf (" product that is covered by this License, on a durable physical\n");
  275. gdb_printf (" medium customarily used for software interchange, for a price no\n");
  276. gdb_printf (" more than your reasonable cost of physically performing this\n");
  277. gdb_printf (" conveying of source, or (2) access to copy the\n");
  278. gdb_printf (" Corresponding Source from a network server at no charge.\n");
  279. gdb_printf ("\n");
  280. gdb_printf (" c) Convey individual copies of the object code with a copy of the\n");
  281. gdb_printf (" written offer to provide the Corresponding Source. This\n");
  282. gdb_printf (" alternative is allowed only occasionally and noncommercially, and\n");
  283. gdb_printf (" only if you received the object code with such an offer, in accord\n");
  284. gdb_printf (" with subsection 6b.\n");
  285. gdb_printf ("\n");
  286. gdb_printf (" d) Convey the object code by offering access from a designated\n");
  287. gdb_printf (" place (gratis or for a charge), and offer equivalent access to the\n");
  288. gdb_printf (" Corresponding Source in the same way through the same place at no\n");
  289. gdb_printf (" further charge. You need not require recipients to copy the\n");
  290. gdb_printf (" Corresponding Source along with the object code. If the place to\n");
  291. gdb_printf (" copy the object code is a network server, the Corresponding Source\n");
  292. gdb_printf (" may be on a different server (operated by you or a third party)\n");
  293. gdb_printf (" that supports equivalent copying facilities, provided you maintain\n");
  294. gdb_printf (" clear directions next to the object code saying where to find the\n");
  295. gdb_printf (" Corresponding Source. Regardless of what server hosts the\n");
  296. gdb_printf (" Corresponding Source, you remain obligated to ensure that it is\n");
  297. gdb_printf (" available for as long as needed to satisfy these requirements.\n");
  298. gdb_printf ("\n");
  299. gdb_printf (" e) Convey the object code using peer-to-peer transmission, provided\n");
  300. gdb_printf (" you inform other peers where the object code and Corresponding\n");
  301. gdb_printf (" Source of the work are being offered to the general public at no\n");
  302. gdb_printf (" charge under subsection 6d.\n");
  303. gdb_printf ("\n");
  304. gdb_printf (" A separable portion of the object code, whose source code is excluded\n");
  305. gdb_printf ("from the Corresponding Source as a System Library, need not be\n");
  306. gdb_printf ("included in conveying the object code work.\n");
  307. gdb_printf ("\n");
  308. gdb_printf (" A \"User Product\" is either (1) a \"consumer product\", which means any\n");
  309. gdb_printf ("tangible personal property which is normally used for personal, family,\n");
  310. gdb_printf ("or household purposes, or (2) anything designed or sold for incorporation\n");
  311. gdb_printf ("into a dwelling. In determining whether a product is a consumer product,\n");
  312. gdb_printf ("doubtful cases shall be resolved in favor of coverage. For a particular\n");
  313. gdb_printf ("product received by a particular user, \"normally used\" refers to a\n");
  314. gdb_printf ("typical or common use of that class of product, regardless of the status\n");
  315. gdb_printf ("of the particular user or of the way in which the particular user\n");
  316. gdb_printf ("actually uses, or expects or is expected to use, the product. A product\n");
  317. gdb_printf ("is a consumer product regardless of whether the product has substantial\n");
  318. gdb_printf ("commercial, industrial or non-consumer uses, unless such uses represent\n");
  319. gdb_printf ("the only significant mode of use of the product.\n");
  320. gdb_printf ("\n");
  321. gdb_printf (" \"Installation Information\" for a User Product means any methods,\n");
  322. gdb_printf ("procedures, authorization keys, or other information required to install\n");
  323. gdb_printf ("and execute modified versions of a covered work in that User Product from\n");
  324. gdb_printf ("a modified version of its Corresponding Source. The information must\n");
  325. gdb_printf ("suffice to ensure that the continued functioning of the modified object\n");
  326. gdb_printf ("code is in no case prevented or interfered with solely because\n");
  327. gdb_printf ("modification has been made.\n");
  328. gdb_printf ("\n");
  329. gdb_printf (" If you convey an object code work under this section in, or with, or\n");
  330. gdb_printf ("specifically for use in, a User Product, and the conveying occurs as\n");
  331. gdb_printf ("part of a transaction in which the right of possession and use of the\n");
  332. gdb_printf ("User Product is transferred to the recipient in perpetuity or for a\n");
  333. gdb_printf ("fixed term (regardless of how the transaction is characterized), the\n");
  334. gdb_printf ("Corresponding Source conveyed under this section must be accompanied\n");
  335. gdb_printf ("by the Installation Information. But this requirement does not apply\n");
  336. gdb_printf ("if neither you nor any third party retains the ability to install\n");
  337. gdb_printf ("modified object code on the User Product (for example, the work has\n");
  338. gdb_printf ("been installed in ROM).\n");
  339. gdb_printf ("\n");
  340. gdb_printf (" The requirement to provide Installation Information does not include a\n");
  341. gdb_printf ("requirement to continue to provide support service, warranty, or updates\n");
  342. gdb_printf ("for a work that has been modified or installed by the recipient, or for\n");
  343. gdb_printf ("the User Product in which it has been modified or installed. Access to a\n");
  344. gdb_printf ("network may be denied when the modification itself materially and\n");
  345. gdb_printf ("adversely affects the operation of the network or violates the rules and\n");
  346. gdb_printf ("protocols for communication across the network.\n");
  347. gdb_printf ("\n");
  348. gdb_printf (" Corresponding Source conveyed, and Installation Information provided,\n");
  349. gdb_printf ("in accord with this section must be in a format that is publicly\n");
  350. gdb_printf ("documented (and with an implementation available to the public in\n");
  351. gdb_printf ("source code form), and must require no special password or key for\n");
  352. gdb_printf ("unpacking, reading or copying.\n");
  353. gdb_printf ("\n");
  354. gdb_printf (" 7. Additional Terms.\n");
  355. gdb_printf ("\n");
  356. gdb_printf (" \"Additional permissions\" are terms that supplement the terms of this\n");
  357. gdb_printf ("License by making exceptions from one or more of its conditions.\n");
  358. gdb_printf ("Additional permissions that are applicable to the entire Program shall\n");
  359. gdb_printf ("be treated as though they were included in this License, to the extent\n");
  360. gdb_printf ("that they are valid under applicable law. If additional permissions\n");
  361. gdb_printf ("apply only to part of the Program, that part may be used separately\n");
  362. gdb_printf ("under those permissions, but the entire Program remains governed by\n");
  363. gdb_printf ("this License without regard to the additional permissions.\n");
  364. gdb_printf ("\n");
  365. gdb_printf (" When you convey a copy of a covered work, you may at your option\n");
  366. gdb_printf ("remove any additional permissions from that copy, or from any part of\n");
  367. gdb_printf ("it. (Additional permissions may be written to require their own\n");
  368. gdb_printf ("removal in certain cases when you modify the work.) You may place\n");
  369. gdb_printf ("additional permissions on material, added by you to a covered work,\n");
  370. gdb_printf ("for which you have or can give appropriate copyright permission.\n");
  371. gdb_printf ("\n");
  372. gdb_printf (" Notwithstanding any other provision of this License, for material you\n");
  373. gdb_printf ("add to a covered work, you may (if authorized by the copyright holders of\n");
  374. gdb_printf ("that material) supplement the terms of this License with terms:\n");
  375. gdb_printf ("\n");
  376. gdb_printf (" a) Disclaiming warranty or limiting liability differently from the\n");
  377. gdb_printf (" terms of sections 15 and 16 of this License; or\n");
  378. gdb_printf ("\n");
  379. gdb_printf (" b) Requiring preservation of specified reasonable legal notices or\n");
  380. gdb_printf (" author attributions in that material or in the Appropriate Legal\n");
  381. gdb_printf (" Notices displayed by works containing it; or\n");
  382. gdb_printf ("\n");
  383. gdb_printf (" c) Prohibiting misrepresentation of the origin of that material, or\n");
  384. gdb_printf (" requiring that modified versions of such material be marked in\n");
  385. gdb_printf (" reasonable ways as different from the original version; or\n");
  386. gdb_printf ("\n");
  387. gdb_printf (" d) Limiting the use for publicity purposes of names of licensors or\n");
  388. gdb_printf (" authors of the material; or\n");
  389. gdb_printf ("\n");
  390. gdb_printf (" e) Declining to grant rights under trademark law for use of some\n");
  391. gdb_printf (" trade names, trademarks, or service marks; or\n");
  392. gdb_printf ("\n");
  393. gdb_printf (" f) Requiring indemnification of licensors and authors of that\n");
  394. gdb_printf (" material by anyone who conveys the material (or modified versions of\n");
  395. gdb_printf (" it) with contractual assumptions of liability to the recipient, for\n");
  396. gdb_printf (" any liability that these contractual assumptions directly impose on\n");
  397. gdb_printf (" those licensors and authors.\n");
  398. gdb_printf ("\n");
  399. gdb_printf (" All other non-permissive additional terms are considered \"further\n");
  400. gdb_printf ("restrictions\" within the meaning of section 10. If the Program as you\n");
  401. gdb_printf ("received it, or any part of it, contains a notice stating that it is\n");
  402. gdb_printf ("governed by this License along with a term that is a further\n");
  403. gdb_printf ("restriction, you may remove that term. If a license document contains\n");
  404. gdb_printf ("a further restriction but permits relicensing or conveying under this\n");
  405. gdb_printf ("License, you may add to a covered work material governed by the terms\n");
  406. gdb_printf ("of that license document, provided that the further restriction does\n");
  407. gdb_printf ("not survive such relicensing or conveying.\n");
  408. gdb_printf ("\n");
  409. gdb_printf (" If you add terms to a covered work in accord with this section, you\n");
  410. gdb_printf ("must place, in the relevant source files, a statement of the\n");
  411. gdb_printf ("additional terms that apply to those files, or a notice indicating\n");
  412. gdb_printf ("where to find the applicable terms.\n");
  413. gdb_printf ("\n");
  414. gdb_printf (" Additional terms, permissive or non-permissive, may be stated in the\n");
  415. gdb_printf ("form of a separately written license, or stated as exceptions;\n");
  416. gdb_printf ("the above requirements apply either way.\n");
  417. gdb_printf ("\n");
  418. gdb_printf (" 8. Termination.\n");
  419. gdb_printf ("\n");
  420. gdb_printf (" You may not propagate or modify a covered work except as expressly\n");
  421. gdb_printf ("provided under this License. Any attempt otherwise to propagate or\n");
  422. gdb_printf ("modify it is void, and will automatically terminate your rights under\n");
  423. gdb_printf ("this License (including any patent licenses granted under the third\n");
  424. gdb_printf ("paragraph of section 11).\n");
  425. gdb_printf ("\n");
  426. gdb_printf (" However, if you cease all violation of this License, then your\n");
  427. gdb_printf ("license from a particular copyright holder is reinstated (a)\n");
  428. gdb_printf ("provisionally, unless and until the copyright holder explicitly and\n");
  429. gdb_printf ("finally terminates your license, and (b) permanently, if the copyright\n");
  430. gdb_printf ("holder fails to notify you of the violation by some reasonable means\n");
  431. gdb_printf ("prior to 60 days after the cessation.\n");
  432. gdb_printf ("\n");
  433. gdb_printf (" Moreover, your license from a particular copyright holder is\n");
  434. gdb_printf ("reinstated permanently if the copyright holder notifies you of the\n");
  435. gdb_printf ("violation by some reasonable means, this is the first time you have\n");
  436. gdb_printf ("received notice of violation of this License (for any work) from that\n");
  437. gdb_printf ("copyright holder, and you cure the violation prior to 30 days after\n");
  438. gdb_printf ("your receipt of the notice.\n");
  439. gdb_printf ("\n");
  440. gdb_printf (" Termination of your rights under this section does not terminate the\n");
  441. gdb_printf ("licenses of parties who have received copies or rights from you under\n");
  442. gdb_printf ("this License. If your rights have been terminated and not permanently\n");
  443. gdb_printf ("reinstated, you do not qualify to receive new licenses for the same\n");
  444. gdb_printf ("material under section 10.\n");
  445. gdb_printf ("\n");
  446. gdb_printf (" 9. Acceptance Not Required for Having Copies.\n");
  447. gdb_printf ("\n");
  448. gdb_printf (" You are not required to accept this License in order to receive or\n");
  449. gdb_printf ("run a copy of the Program. Ancillary propagation of a covered work\n");
  450. gdb_printf ("occurring solely as a consequence of using peer-to-peer transmission\n");
  451. gdb_printf ("to receive a copy likewise does not require acceptance. However,\n");
  452. gdb_printf ("nothing other than this License grants you permission to propagate or\n");
  453. gdb_printf ("modify any covered work. These actions infringe copyright if you do\n");
  454. gdb_printf ("not accept this License. Therefore, by modifying or propagating a\n");
  455. gdb_printf ("covered work, you indicate your acceptance of this License to do so.\n");
  456. gdb_printf ("\n");
  457. gdb_printf (" 10. Automatic Licensing of Downstream Recipients.\n");
  458. gdb_printf ("\n");
  459. gdb_printf (" Each time you convey a covered work, the recipient automatically\n");
  460. gdb_printf ("receives a license from the original licensors, to run, modify and\n");
  461. gdb_printf ("propagate that work, subject to this License. You are not responsible\n");
  462. gdb_printf ("for enforcing compliance by third parties with this License.\n");
  463. gdb_printf ("\n");
  464. gdb_printf (" An \"entity transaction\" is a transaction transferring control of an\n");
  465. gdb_printf ("organization, or substantially all assets of one, or subdividing an\n");
  466. gdb_printf ("organization, or merging organizations. If propagation of a covered\n");
  467. gdb_printf ("work results from an entity transaction, each party to that\n");
  468. gdb_printf ("transaction who receives a copy of the work also receives whatever\n");
  469. gdb_printf ("licenses to the work the party's predecessor in interest had or could\n");
  470. gdb_printf ("give under the previous paragraph, plus a right to possession of the\n");
  471. gdb_printf ("Corresponding Source of the work from the predecessor in interest, if\n");
  472. gdb_printf ("the predecessor has it or can get it with reasonable efforts.\n");
  473. gdb_printf ("\n");
  474. gdb_printf (" You may not impose any further restrictions on the exercise of the\n");
  475. gdb_printf ("rights granted or affirmed under this License. For example, you may\n");
  476. gdb_printf ("not impose a license fee, royalty, or other charge for exercise of\n");
  477. gdb_printf ("rights granted under this License, and you may not initiate litigation\n");
  478. gdb_printf ("(including a cross-claim or counterclaim in a lawsuit) alleging that\n");
  479. gdb_printf ("any patent claim is infringed by making, using, selling, offering for\n");
  480. gdb_printf ("sale, or importing the Program or any portion of it.\n");
  481. gdb_printf ("\n");
  482. gdb_printf (" 11. Patents.\n");
  483. gdb_printf ("\n");
  484. gdb_printf (" A \"contributor\" is a copyright holder who authorizes use under this\n");
  485. gdb_printf ("License of the Program or a work on which the Program is based. The\n");
  486. gdb_printf ("work thus licensed is called the contributor's \"contributor version\".\n");
  487. gdb_printf ("\n");
  488. gdb_printf (" A contributor's \"essential patent claims\" are all patent claims\n");
  489. gdb_printf ("owned or controlled by the contributor, whether already acquired or\n");
  490. gdb_printf ("hereafter acquired, that would be infringed by some manner, permitted\n");
  491. gdb_printf ("by this License, of making, using, or selling its contributor version,\n");
  492. gdb_printf ("but do not include claims that would be infringed only as a\n");
  493. gdb_printf ("consequence of further modification of the contributor version. For\n");
  494. gdb_printf ("purposes of this definition, \"control\" includes the right to grant\n");
  495. gdb_printf ("patent sublicenses in a manner consistent with the requirements of\n");
  496. gdb_printf ("this License.\n");
  497. gdb_printf ("\n");
  498. gdb_printf (" Each contributor grants you a non-exclusive, worldwide, royalty-free\n");
  499. gdb_printf ("patent license under the contributor's essential patent claims, to\n");
  500. gdb_printf ("make, use, sell, offer for sale, import and otherwise run, modify and\n");
  501. gdb_printf ("propagate the contents of its contributor version.\n");
  502. gdb_printf ("\n");
  503. gdb_printf (" In the following three paragraphs, a \"patent license\" is any express\n");
  504. gdb_printf ("agreement or commitment, however denominated, not to enforce a patent\n");
  505. gdb_printf ("(such as an express permission to practice a patent or covenant not to\n");
  506. gdb_printf ("sue for patent infringement). To \"grant\" such a patent license to a\n");
  507. gdb_printf ("party means to make such an agreement or commitment not to enforce a\n");
  508. gdb_printf ("patent against the party.\n");
  509. gdb_printf ("\n");
  510. gdb_printf (" If you convey a covered work, knowingly relying on a patent license,\n");
  511. gdb_printf ("and the Corresponding Source of the work is not available for anyone\n");
  512. gdb_printf ("to copy, free of charge and under the terms of this License, through a\n");
  513. gdb_printf ("publicly available network server or other readily accessible means,\n");
  514. gdb_printf ("then you must either (1) cause the Corresponding Source to be so\n");
  515. gdb_printf ("available, or (2) arrange to deprive yourself of the benefit of the\n");
  516. gdb_printf ("patent license for this particular work, or (3) arrange, in a manner\n");
  517. gdb_printf ("consistent with the requirements of this License, to extend the patent\n");
  518. gdb_printf ("license to downstream recipients. \"Knowingly relying\" means you have\n");
  519. gdb_printf ("actual knowledge that, but for the patent license, your conveying the\n");
  520. gdb_printf ("covered work in a country, or your recipient's use of the covered work\n");
  521. gdb_printf ("in a country, would infringe one or more identifiable patents in that\n");
  522. gdb_printf ("country that you have reason to believe are valid.\n");
  523. gdb_printf ("\n");
  524. gdb_printf (" If, pursuant to or in connection with a single transaction or\n");
  525. gdb_printf ("arrangement, you convey, or propagate by procuring conveyance of, a\n");
  526. gdb_printf ("covered work, and grant a patent license to some of the parties\n");
  527. gdb_printf ("receiving the covered work authorizing them to use, propagate, modify\n");
  528. gdb_printf ("or convey a specific copy of the covered work, then the patent license\n");
  529. gdb_printf ("you grant is automatically extended to all recipients of the covered\n");
  530. gdb_printf ("work and works based on it.\n");
  531. gdb_printf ("\n");
  532. gdb_printf (" A patent license is \"discriminatory\" if it does not include within\n");
  533. gdb_printf ("the scope of its coverage, prohibits the exercise of, or is\n");
  534. gdb_printf ("conditioned on the non-exercise of one or more of the rights that are\n");
  535. gdb_printf ("specifically granted under this License. You may not convey a covered\n");
  536. gdb_printf ("work if you are a party to an arrangement with a third party that is\n");
  537. gdb_printf ("in the business of distributing software, under which you make payment\n");
  538. gdb_printf ("to the third party based on the extent of your activity of conveying\n");
  539. gdb_printf ("the work, and under which the third party grants, to any of the\n");
  540. gdb_printf ("parties who would receive the covered work from you, a discriminatory\n");
  541. gdb_printf ("patent license (a) in connection with copies of the covered work\n");
  542. gdb_printf ("conveyed by you (or copies made from those copies), or (b) primarily\n");
  543. gdb_printf ("for and in connection with specific products or compilations that\n");
  544. gdb_printf ("contain the covered work, unless you entered into that arrangement,\n");
  545. gdb_printf ("or that patent license was granted, prior to 28 March 2007.\n");
  546. gdb_printf ("\n");
  547. gdb_printf (" Nothing in this License shall be construed as excluding or limiting\n");
  548. gdb_printf ("any implied license or other defenses to infringement that may\n");
  549. gdb_printf ("otherwise be available to you under applicable patent law.\n");
  550. gdb_printf ("\n");
  551. gdb_printf (" 12. No Surrender of Others' Freedom.\n");
  552. gdb_printf ("\n");
  553. gdb_printf (" If conditions are imposed on you (whether by court order, agreement or\n");
  554. gdb_printf ("otherwise) that contradict the conditions of this License, they do not\n");
  555. gdb_printf ("excuse you from the conditions of this License. If you cannot convey a\n");
  556. gdb_printf ("covered work so as to satisfy simultaneously your obligations under this\n");
  557. gdb_printf ("License and any other pertinent obligations, then as a consequence you may\n");
  558. gdb_printf ("not convey it at all. For example, if you agree to terms that obligate you\n");
  559. gdb_printf ("to collect a royalty for further conveying from those to whom you convey\n");
  560. gdb_printf ("the Program, the only way you could satisfy both those terms and this\n");
  561. gdb_printf ("License would be to refrain entirely from conveying the Program.\n");
  562. gdb_printf ("\n");
  563. gdb_printf (" 13. Use with the GNU Affero General Public License.\n");
  564. gdb_printf ("\n");
  565. gdb_printf (" Notwithstanding any other provision of this License, you have\n");
  566. gdb_printf ("permission to link or combine any covered work with a work licensed\n");
  567. gdb_printf ("under version 3 of the GNU Affero General Public License into a single\n");
  568. gdb_printf ("combined work, and to convey the resulting work. The terms of this\n");
  569. gdb_printf ("License will continue to apply to the part which is the covered work,\n");
  570. gdb_printf ("but the special requirements of the GNU Affero General Public License,\n");
  571. gdb_printf ("section 13, concerning interaction through a network will apply to the\n");
  572. gdb_printf ("combination as such.\n");
  573. gdb_printf ("\n");
  574. gdb_printf (" 14. Revised Versions of this License.\n");
  575. gdb_printf ("\n");
  576. gdb_printf (" The Free Software Foundation may publish revised and/or new versions of\n");
  577. gdb_printf ("the GNU General Public License from time to time. Such new versions will\n");
  578. gdb_printf ("be similar in spirit to the present version, but may differ in detail to\n");
  579. gdb_printf ("address new problems or concerns.\n");
  580. gdb_printf ("\n");
  581. gdb_printf (" Each version is given a distinguishing version number. If the\n");
  582. gdb_printf ("Program specifies that a certain numbered version of the GNU General\n");
  583. gdb_printf ("Public License \"or any later version\" applies to it, you have the\n");
  584. gdb_printf ("option of following the terms and conditions either of that numbered\n");
  585. gdb_printf ("version or of any later version published by the Free Software\n");
  586. gdb_printf ("Foundation. If the Program does not specify a version number of the\n");
  587. gdb_printf ("GNU General Public License, you may choose any version ever published\n");
  588. gdb_printf ("by the Free Software Foundation.\n");
  589. gdb_printf ("\n");
  590. gdb_printf (" If the Program specifies that a proxy can decide which future\n");
  591. gdb_printf ("versions of the GNU General Public License can be used, that proxy's\n");
  592. gdb_printf ("public statement of acceptance of a version permanently authorizes you\n");
  593. gdb_printf ("to choose that version for the Program.\n");
  594. gdb_printf ("\n");
  595. gdb_printf (" Later license versions may give you additional or different\n");
  596. gdb_printf ("permissions. However, no additional obligations are imposed on any\n");
  597. gdb_printf ("author or copyright holder as a result of your choosing to follow a\n");
  598. gdb_printf ("later version.\n");
  599. gdb_printf ("\n");
  600. }
  601. static void
  602. show_warranty_command (const char *ignore, int from_tty)
  603. {
  604. gdb_printf (" 15. Disclaimer of Warranty.\n");
  605. gdb_printf ("\n");
  606. gdb_printf (" THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\n");
  607. gdb_printf ("APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\n");
  608. gdb_printf ("HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\n");
  609. gdb_printf ("OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\n");
  610. gdb_printf ("THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n");
  611. gdb_printf ("PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\n");
  612. gdb_printf ("IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\n");
  613. gdb_printf ("ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n");
  614. gdb_printf ("\n");
  615. gdb_printf (" 16. Limitation of Liability.\n");
  616. gdb_printf ("\n");
  617. gdb_printf (" IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n");
  618. gdb_printf ("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\n");
  619. gdb_printf ("THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\n");
  620. gdb_printf ("GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\n");
  621. gdb_printf ("USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\n");
  622. gdb_printf ("DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\n");
  623. gdb_printf ("PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\n");
  624. gdb_printf ("EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\n");
  625. gdb_printf ("SUCH DAMAGES.\n");
  626. gdb_printf ("\n");
  627. gdb_printf (" 17. Interpretation of Sections 15 and 16.\n");
  628. gdb_printf ("\n");
  629. gdb_printf (" If the disclaimer of warranty and limitation of liability provided\n");
  630. gdb_printf ("above cannot be given local legal effect according to their terms,\n");
  631. gdb_printf ("reviewing courts shall apply local law that most closely approximates\n");
  632. gdb_printf ("an absolute waiver of all civil liability in connection with the\n");
  633. gdb_printf ("Program, unless a warranty or assumption of liability accompanies a\n");
  634. gdb_printf ("copy of the Program in return for a fee.\n");
  635. gdb_printf ("\n");
  636. }
  637. void _initialize_copying ();
  638. void
  639. _initialize_copying ()
  640. {
  641. add_cmd ("copying", no_set_class, show_copying_command,
  642. _("Conditions for redistributing copies of GDB."),
  643. &showlist);
  644. add_cmd ("warranty", no_set_class, show_warranty_command,
  645. _("Various kinds of warranty you do not have."),
  646. &showlist);
  647. /* For old-timers, allow "info copying", etc. */
  648. add_info ("copying", show_copying_command,
  649. _("Conditions for redistributing copies of GDB."));
  650. add_info ("warranty", show_warranty_command,
  651. _("Various kinds of warranty you do not have."));
  652. }