You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Formatting-Documentation.html 7.9KB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>Formatting Documentation (Debugging with GDB)</title>
  17. <meta name="description" content="Formatting Documentation (Debugging with GDB)">
  18. <meta name="keywords" content="Formatting Documentation (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="index.html#Top" rel="up" title="Top">
  26. <link href="Installing-GDB.html#Installing-GDB" rel="next" title="Installing GDB">
  27. <link href="In-Memoriam.html#In-Memoriam" rel="prev" title="In Memoriam">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="Formatting-Documentation"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Installing-GDB.html#Installing-GDB" accesskey="n" rel="next">Installing GDB</a>, Previous: <a href="In-Memoriam.html#In-Memoriam" accesskey="p" rel="prev">In Memoriam</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="Formatting-Documentation-1"></a>
  64. <h2 class="appendix">Appendix B Formatting Documentation</h2>
  65. <a name="index-GDB-reference-card"></a>
  66. <a name="index-reference-card"></a>
  67. <p>The <small>GDB</small> 4 release includes an already-formatted reference card, ready
  68. for printing with PostScript or Ghostscript, in the <samp>gdb</samp>
  69. subdirectory of the main source directory<a name="DOCF19" href="#FOOT19"><sup>19</sup></a>. If you can use PostScript or Ghostscript with your printer,
  70. you can print the reference card immediately with <samp>refcard.ps</samp>.
  71. </p>
  72. <p>The release also includes the source for the reference card. You
  73. can format it, using TeX, by typing:
  74. </p>
  75. <div class="smallexample">
  76. <pre class="smallexample">make refcard.dvi
  77. </pre></div>
  78. <p>The <small>GDB</small> reference card is designed to print in <em>landscape</em>
  79. mode on US &ldquo;letter&rdquo; size paper;
  80. that is, on a sheet 11 inches wide by 8.5 inches
  81. high. You will need to specify this form of printing as an option to
  82. your <small>DVI</small> output program.
  83. </p>
  84. <a name="index-documentation"></a>
  85. <p>All the documentation for <small>GDB</small> comes as part of the machine-readable
  86. distribution. The documentation is written in Texinfo format, which is
  87. a documentation system that uses a single source file to produce both
  88. on-line information and a printed manual. You can use one of the Info
  89. formatting commands to create the on-line version of the documentation
  90. and TeX (or <code>texi2roff</code>) to typeset the printed version.
  91. </p>
  92. <p><small>GDB</small> includes an already formatted copy of the on-line Info
  93. version of this manual in the <samp>gdb</samp> subdirectory. The main Info
  94. file is <samp>gdb-10.1.90.20201028-git/gdb/gdb.info</samp>, and it refers to
  95. subordinate files matching &lsquo;<samp>gdb.info*</samp>&rsquo; in the same directory. If
  96. necessary, you can print out these files, or read them with any editor;
  97. but they are easier to read using the <code>info</code> subsystem in <small>GNU</small>
  98. Emacs or the standalone <code>info</code> program, available as part of the
  99. <small>GNU</small> Texinfo distribution.
  100. </p>
  101. <p>If you want to format these Info files yourself, you need one of the
  102. Info formatting programs, such as <code>texinfo-format-buffer</code> or
  103. <code>makeinfo</code>.
  104. </p>
  105. <p>If you have <code>makeinfo</code> installed, and are in the top level
  106. <small>GDB</small> source directory (<samp>gdb-10.1.90.20201028-git</samp>, in the case of
  107. version 10.1.90.20201028-git), you can make the Info file by typing:
  108. </p>
  109. <div class="smallexample">
  110. <pre class="smallexample">cd gdb
  111. make gdb.info
  112. </pre></div>
  113. <p>If you want to typeset and print copies of this manual, you need TeX,
  114. a program to print its <small>DVI</small> output files, and <samp>texinfo.tex</samp>, the
  115. Texinfo definitions file.
  116. </p>
  117. <p>TeX is a typesetting program; it does not print files directly, but
  118. produces output files called <small>DVI</small> files. To print a typeset
  119. document, you need a program to print <small>DVI</small> files. If your system
  120. has TeX installed, chances are it has such a program. The precise
  121. command to use depends on your system; <kbd>lpr -d</kbd> is common; another
  122. (for PostScript devices) is <kbd>dvips</kbd>. The <small>DVI</small> print command may
  123. require a file name without any extension or a &lsquo;<samp>.dvi</samp>&rsquo; extension.
  124. </p>
  125. <p>TeX also requires a macro definitions file called
  126. <samp>texinfo.tex</samp>. This file tells TeX how to typeset a document
  127. written in Texinfo format. On its own, TeX cannot either read or
  128. typeset a Texinfo file. <samp>texinfo.tex</samp> is distributed with GDB
  129. and is located in the <samp>gdb-<var>version-number</var>/texinfo</samp>
  130. directory.
  131. </p>
  132. <p>If you have TeX and a <small>DVI</small> printer program installed, you can
  133. typeset and print this manual. First switch to the <samp>gdb</samp>
  134. subdirectory of the main source directory (for example, to
  135. <samp>gdb-10.1.90.20201028-git/gdb</samp>) and type:
  136. </p>
  137. <div class="smallexample">
  138. <pre class="smallexample">make gdb.dvi
  139. </pre></div>
  140. <p>Then give <samp>gdb.dvi</samp> to your <small>DVI</small> printing program.
  141. </p>
  142. <div class="footnote">
  143. <hr>
  144. <h4 class="footnotes-heading">Footnotes</h4>
  145. <h3><a name="FOOT19" href="#DOCF19">(19)</a></h3>
  146. <p>In
  147. <samp>gdb-10.1.90.20201028-git/gdb/refcard.ps</samp> of the version 10.1.90.20201028-git
  148. release.</p>
  149. </div>
  150. <hr>
  151. <div class="header">
  152. <p>
  153. Next: <a href="Installing-GDB.html#Installing-GDB" accesskey="n" rel="next">Installing GDB</a>, Previous: <a href="In-Memoriam.html#In-Memoriam" accesskey="p" rel="prev">In Memoriam</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  154. </div>
  155. </body>
  156. </html>