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.

176 lines
7.7KB

  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>Symbol Errors (Debugging with GDB)</title>
  17. <meta name="description" content="Symbol Errors (Debugging with GDB)">
  18. <meta name="keywords" content="Symbol Errors (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="Data-Files.html#Data-Files" rel="next" title="Data Files">
  27. <link href="Index-Files.html#Index-Files" rel="prev" title="Index 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="Symbol-Errors"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Data-Files.html#Data-Files" accesskey="n" rel="next">Data Files</a>, Previous: <a href="Index-Files.html#Index-Files" accesskey="p" rel="prev">Index 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="Errors-Reading-Symbol-Files"></a>
  64. <h3 class="section">18.6 Errors Reading Symbol Files</h3>
  65. <p>While reading a symbol file, <small>GDB</small> occasionally encounters problems,
  66. such as symbol types it does not recognize, or known bugs in compiler
  67. output. By default, <small>GDB</small> does not notify you of such problems, since
  68. they are relatively common and primarily of interest to people
  69. debugging compilers. If you are interested in seeing information
  70. about ill-constructed symbol tables, you can either ask <small>GDB</small> to print
  71. only one message about each such type of problem, no matter how many
  72. times the problem occurs; or you can ask <small>GDB</small> to print more messages,
  73. to see how many times the problems occur, with the <code>set
  74. complaints</code> command (see <a href="Messages_002fWarnings.html#Messages_002fWarnings">Optional Warnings and
  75. Messages</a>).
  76. </p>
  77. <p>The messages currently printed, and their meanings, include:
  78. </p>
  79. <dl compact="compact">
  80. <dt><code>inner block not inside outer block in <var>symbol</var></code></dt>
  81. <dd>
  82. <p>The symbol information shows where symbol scopes begin and end
  83. (such as at the start of a function or a block of statements). This
  84. error indicates that an inner scope block is not fully contained
  85. in its outer scope blocks.
  86. </p>
  87. <p><small>GDB</small> circumvents the problem by treating the inner block as if it had
  88. the same scope as the outer block. In the error message, <var>symbol</var>
  89. may be shown as &ldquo;<code>(don't know)</code>&rdquo; if the outer block is not a
  90. function.
  91. </p>
  92. </dd>
  93. <dt><code>block at <var>address</var> out of order</code></dt>
  94. <dd>
  95. <p>The symbol information for symbol scope blocks should occur in
  96. order of increasing addresses. This error indicates that it does not
  97. do so.
  98. </p>
  99. <p><small>GDB</small> does not circumvent this problem, and has trouble
  100. locating symbols in the source file whose symbols it is reading. (You
  101. can often determine what source file is affected by specifying
  102. <code>set verbose on</code>. See <a href="Messages_002fWarnings.html#Messages_002fWarnings">Optional Warnings and
  103. Messages</a>.)
  104. </p>
  105. </dd>
  106. <dt><code>bad block start address patched</code></dt>
  107. <dd>
  108. <p>The symbol information for a symbol scope block has a start address
  109. smaller than the address of the preceding source line. This is known
  110. to occur in the SunOS 4.1.1 (and earlier) C compiler.
  111. </p>
  112. <p><small>GDB</small> circumvents the problem by treating the symbol scope block as
  113. starting on the previous source line.
  114. </p>
  115. </dd>
  116. <dt><code>bad string table offset in symbol <var>n</var></code></dt>
  117. <dd>
  118. <a name="index-foo"></a>
  119. <p>Symbol number <var>n</var> contains a pointer into the string table which is
  120. larger than the size of the string table.
  121. </p>
  122. <p><small>GDB</small> circumvents the problem by considering the symbol to have the
  123. name <code>foo</code>, which may cause other problems if many symbols end up
  124. with this name.
  125. </p>
  126. </dd>
  127. <dt><code>unknown symbol type <code>0x<var>nn</var></code></code></dt>
  128. <dd>
  129. <p>The symbol information contains new data types that <small>GDB</small> does
  130. not yet know how to read. <code>0x<var>nn</var></code> is the symbol type of the
  131. uncomprehended information, in hexadecimal.
  132. </p>
  133. <p><small>GDB</small> circumvents the error by ignoring this symbol information.
  134. This usually allows you to debug your program, though certain symbols
  135. are not accessible. If you encounter such a problem and feel like
  136. debugging it, you can debug <code>gdb</code> with itself, breakpoint
  137. on <code>complain</code>, then go up to the function <code>read_dbx_symtab</code>
  138. and examine <code>*bufp</code> to see the symbol.
  139. </p>
  140. </dd>
  141. <dt><code>stub type has NULL name</code></dt>
  142. <dd>
  143. <p><small>GDB</small> could not find the full definition for a struct or class.
  144. </p>
  145. </dd>
  146. <dt><code>const/volatile indicator missing (ok if using g++ v1.x), got&hellip;</code></dt>
  147. <dd><p>The symbol information for a C<tt>++</tt> member function is missing some
  148. information that recent versions of the compiler should have output for
  149. it.
  150. </p>
  151. </dd>
  152. <dt><code>info mismatch between compiler and debugger</code></dt>
  153. <dd>
  154. <p><small>GDB</small> could not parse a type specification output by the compiler.
  155. </p>
  156. </dd>
  157. </dl>
  158. <hr>
  159. <div class="header">
  160. <p>
  161. Next: <a href="Data-Files.html#Data-Files" accesskey="n" rel="next">Data Files</a>, Previous: <a href="Index-Files.html#Index-Files" accesskey="p" rel="prev">Index 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>
  162. </div>
  163. </body>
  164. </html>