Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

118 Zeilen
5.0KB

  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>File Caching (Debugging with GDB)</title>
  17. <meta name="description" content="File Caching (Debugging with GDB)">
  18. <meta name="keywords" content="File Caching (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="GDB-Files.html#GDB-Files" rel="up" title="GDB Files">
  26. <link href="Separate-Debug-Files.html#Separate-Debug-Files" rel="next" title="Separate Debug Files">
  27. <link href="Files.html#Files" rel="prev" title="Files">
  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="File-Caching"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Separate-Debug-Files.html#Separate-Debug-Files" accesskey="n" rel="next">Separate Debug Files</a>, Previous: <a href="Files.html#Files" accesskey="p" rel="prev">Files</a>, Up: <a href="GDB-Files.html#GDB-Files" accesskey="u" rel="up">GDB Files</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="File-Caching-1"></a>
  64. <h3 class="section">18.2 File Caching</h3>
  65. <a name="index-caching-of-opened-files"></a>
  66. <a name="index-caching-of-bfd-objects"></a>
  67. <p>To speed up file loading, and reduce memory usage, <small>GDB</small> will
  68. reuse the <code>bfd</code> objects used to track open files. See <a href="http://sourceware.org/binutils/docs/bfd/index.html#Top">BFD</a> in <cite>The Binary File Descriptor Library</cite>. The following commands
  69. allow visibility and control of the caching behavior.
  70. </p>
  71. <dl compact="compact">
  72. <dd><a name="index-maint-info-bfds"></a>
  73. </dd>
  74. <dt><code>maint info bfds</code></dt>
  75. <dd><p>This prints information about each <code>bfd</code> object that is known to
  76. <small>GDB</small>.
  77. </p>
  78. <a name="index-maint-set-bfd_002dsharing"></a>
  79. <a name="index-maint-show-bfd_002dsharing"></a>
  80. <a name="index-bfd-caching"></a>
  81. </dd>
  82. <dt><code>maint set bfd-sharing</code></dt>
  83. <dt><code>maint show bfd-sharing</code></dt>
  84. <dd><p>Control whether <code>bfd</code> objects can be shared. When sharing is
  85. enabled <small>GDB</small> reuses already open <code>bfd</code> objects rather
  86. than reopening the same file. Turning sharing off does not cause
  87. already shared <code>bfd</code> objects to be unshared, but all future files
  88. that are opened will create a new <code>bfd</code> object. Similarly,
  89. re-enabling sharing does not cause multiple existing <code>bfd</code>
  90. objects to be collapsed into a single shared <code>bfd</code> object.
  91. </p>
  92. <a name="index-set-debug-bfd_002dcache-level"></a>
  93. <a name="index-bfd-caching-1"></a>
  94. </dd>
  95. <dt><code>set debug bfd-cache <var>level</var></code></dt>
  96. <dd><p>Turns on debugging of the bfd cache, setting the level to <var>level</var>.
  97. </p>
  98. <a name="index-show-debug-bfd_002dcache"></a>
  99. <a name="index-bfd-caching-2"></a>
  100. </dd>
  101. <dt><code>show debug bfd-cache</code></dt>
  102. <dd><p>Show the current debugging level of the bfd cache.
  103. </p></dd>
  104. </dl>
  105. </body>
  106. </html>