Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Requirements.html 11KB

3 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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>Requirements (Debugging with GDB)</title>
  17. <meta name="description" content="Requirements (Debugging with GDB)">
  18. <meta name="keywords" content="Requirements (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="Installing-GDB.html#Installing-GDB" rel="up" title="Installing GDB">
  26. <link href="Running-Configure.html#Running-Configure" rel="next" title="Running Configure">
  27. <link href="Installing-GDB.html#Installing-GDB" rel="prev" title="Installing GDB">
  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="Requirements"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Running-Configure.html#Running-Configure" accesskey="n" rel="next">Running Configure</a>, Up: <a href="Installing-GDB.html#Installing-GDB" accesskey="u" rel="up">Installing GDB</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="Requirements-for-Building-GDB"></a>
  64. <h3 class="section">C.1 Requirements for Building <small>GDB</small></h3>
  65. <a name="index-building-GDB_002c-requirements-for"></a>
  66. <p>Building <small>GDB</small> requires various tools and packages to be available.
  67. Other packages will be used only if they are found.
  68. </p>
  69. <a name="Tools_002fPackages-Necessary-for-Building-GDB"></a>
  70. <h3 class="heading">Tools/Packages Necessary for Building <small>GDB</small></h3>
  71. <dl compact="compact">
  72. <dt>C<tt>++</tt>11 compiler</dt>
  73. <dd><p><small>GDB</small> is written in C<tt>++</tt>11. It should be buildable with any
  74. recent C<tt>++</tt>11 compiler, e.g. GCC.
  75. </p>
  76. </dd>
  77. <dt>GNU make</dt>
  78. <dd><p><small>GDB</small>&rsquo;s build system relies on features only found in the GNU
  79. make program. Other variants of <code>make</code> will not work.
  80. </p></dd>
  81. </dl>
  82. <a name="Tools_002fPackages-Optional-for-Building-GDB"></a>
  83. <h3 class="heading">Tools/Packages Optional for Building <small>GDB</small></h3>
  84. <dl compact="compact">
  85. <dt>Expat</dt>
  86. <dd><a name="Expat"></a><p><small>GDB</small> can use the Expat XML parsing library. This library may be
  87. included with your operating system distribution; if it is not, you
  88. can get the latest version from <a href="http://expat.sourceforge.net">http://expat.sourceforge.net</a>.
  89. The <samp>configure</samp> script will search for this library in several
  90. standard locations; if it is installed in an unusual path, you can
  91. use the <samp>--with-libexpat-prefix</samp> option to specify its location.
  92. </p>
  93. <p>Expat is used for:
  94. </p>
  95. <ul>
  96. <li> Remote protocol memory maps (see <a href="Memory-Map-Format.html#Memory-Map-Format">Memory Map Format</a>)
  97. </li><li> Target descriptions (see <a href="Target-Descriptions.html#Target-Descriptions">Target Descriptions</a>)
  98. </li><li> Remote shared library lists (See <a href="Library-List-Format.html#Library-List-Format">Library List Format</a>,
  99. or alternatively see <a href="Library-List-Format-for-SVR4-Targets.html#Library-List-Format-for-SVR4-Targets">Library List Format for SVR4 Targets</a>)
  100. </li><li> MS-Windows shared libraries (see <a href="Files.html#Shared-Libraries">Shared Libraries</a>)
  101. </li><li> Traceframe info (see <a href="Traceframe-Info-Format.html#Traceframe-Info-Format">Traceframe Info Format</a>)
  102. </li><li> Branch trace (see <a href="Branch-Trace-Format.html#Branch-Trace-Format">Branch Trace Format</a>,
  103. see <a href="Branch-Trace-Configuration-Format.html#Branch-Trace-Configuration-Format">Branch Trace Configuration Format</a>)
  104. </li></ul>
  105. </dd>
  106. <dt>Guile</dt>
  107. <dd><p><small>GDB</small> can be scripted using GNU Guile. See <a href="Guile.html#Guile">Guile</a>. By
  108. default, <small>GDB</small> will be compiled if the Guile libraries are
  109. installed and are found by <samp>configure</samp>. You can use the
  110. <code>--with-guile</code> option to request Guile, and pass either the Guile
  111. version number or the file name of the relevant <code>pkg-config</code>
  112. program to choose a particular version of Guile.
  113. </p>
  114. </dd>
  115. <dt>iconv</dt>
  116. <dd><p><small>GDB</small>&rsquo;s features related to character sets (see <a href="Character-Sets.html#Character-Sets">Character Sets</a>) require a functioning <code>iconv</code> implementation. If you are
  117. on a GNU system, then this is provided by the GNU C Library. Some
  118. other systems also provide a working <code>iconv</code>.
  119. </p>
  120. <p>If <small>GDB</small> is using the <code>iconv</code> program which is installed
  121. in a non-standard place, you will need to tell <small>GDB</small> where to
  122. find it. This is done with <samp>--with-iconv-bin</samp> which specifies
  123. the directory that contains the <code>iconv</code> program. This program is
  124. run in order to make a list of the available character sets.
  125. </p>
  126. <p>On systems without <code>iconv</code>, you can install GNU Libiconv. If
  127. Libiconv is installed in a standard place, <small>GDB</small> will
  128. automatically use it if it is needed. If you have previously
  129. installed Libiconv in a non-standard place, you can use the
  130. <samp>--with-libiconv-prefix</samp> option to <samp>configure</samp>.
  131. </p>
  132. <p><small>GDB</small>&rsquo;s top-level <samp>configure</samp> and <samp>Makefile</samp> will
  133. arrange to build Libiconv if a directory named <samp>libiconv</samp> appears
  134. in the top-most source directory. If Libiconv is built this way, and
  135. if the operating system does not provide a suitable <code>iconv</code>
  136. implementation, then the just-built library will automatically be used
  137. by <small>GDB</small>. One easy way to set this up is to download GNU
  138. Libiconv, unpack it inside the top-level directory of the <small>GDB</small>
  139. source tree, and then rename the directory holding the Libiconv source
  140. code to &lsquo;<samp>libiconv</samp>&rsquo;.
  141. </p>
  142. </dd>
  143. <dt>lzma</dt>
  144. <dd><p><small>GDB</small> can support debugging sections that are compressed with
  145. the LZMA library. See <a href="MiniDebugInfo.html#MiniDebugInfo">MiniDebugInfo</a>. If this library is not
  146. included with your operating system, you can find it in the xz package
  147. at <a href="http://tukaani.org/xz/">http://tukaani.org/xz/</a>. If the LZMA library is available in
  148. the usual place, then the <samp>configure</samp> script will use it
  149. automatically. If it is installed in an unusual path, you can use the
  150. <samp>--with-lzma-prefix</samp> option to specify its location.
  151. </p>
  152. </dd>
  153. <dt>MPFR</dt>
  154. <dd><a name="MPFR"></a><p><small>GDB</small> can use the GNU MPFR multiple-precision floating-point
  155. library. This library may be included with your operating system
  156. distribution; if it is not, you can get the latest version from
  157. <a href="http://www.mpfr.org">http://www.mpfr.org</a>. The <samp>configure</samp> script will search
  158. for this library in several standard locations; if it is installed
  159. in an unusual path, you can use the <samp>--with-libmpfr-prefix</samp>
  160. option to specify its location.
  161. </p>
  162. <p>GNU MPFR is used to emulate target floating-point arithmetic during
  163. expression evaluation when the target uses different floating-point
  164. formats than the host. If GNU MPFR it is not available, <small>GDB</small>
  165. will fall back to using host floating-point arithmetic.
  166. </p>
  167. </dd>
  168. <dt>Python</dt>
  169. <dd><p><small>GDB</small> can be scripted using Python language. See <a href="Python.html#Python">Python</a>.
  170. By default, <small>GDB</small> will be compiled if the Python libraries are
  171. installed and are found by <samp>configure</samp>. You can use the
  172. <code>--with-python</code> option to request Python, and pass either the
  173. file name of the relevant <code>python</code> executable, or the name of the
  174. directory in which Python is installed, to choose a particular
  175. installation of Python.
  176. </p>
  177. </dd>
  178. <dt>zlib</dt>
  179. <dd><a name="index-compressed-debug-sections"></a>
  180. <p><small>GDB</small> will use the &lsquo;<samp>zlib</samp>&rsquo; library, if available, to read
  181. compressed debug sections. Some linkers, such as GNU gold, are capable
  182. of producing binaries with compressed debug sections. If <small>GDB</small>
  183. is compiled with &lsquo;<samp>zlib</samp>&rsquo;, it will be able to read the debug
  184. information in such binaries.
  185. </p>
  186. <p>The &lsquo;<samp>zlib</samp>&rsquo; library is likely included with your operating system
  187. distribution; if it is not, you can get the latest version from
  188. <a href="http://zlib.net">http://zlib.net</a>.
  189. </p></dd>
  190. </dl>
  191. <hr>
  192. <div class="header">
  193. <p>
  194. Next: <a href="Running-Configure.html#Running-Configure" accesskey="n" rel="next">Running Configure</a>, Up: <a href="Installing-GDB.html#Installing-GDB" accesskey="u" rel="up">Installing GDB</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>
  195. </div>
  196. </body>
  197. </html>