Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Debugging-Output.html 19KB

3 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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>Debugging Output (Debugging with GDB)</title>
  17. <meta name="description" content="Debugging Output (Debugging with GDB)">
  18. <meta name="keywords" content="Debugging Output (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="Controlling-GDB.html#Controlling-GDB" rel="up" title="Controlling GDB">
  26. <link href="Other-Misc-Settings.html#Other-Misc-Settings" rel="next" title="Other Misc Settings">
  27. <link href="Messages_002fWarnings.html#Messages_002fWarnings" rel="prev" title="Messages/Warnings">
  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="Debugging-Output"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Other-Misc-Settings.html#Other-Misc-Settings" accesskey="n" rel="next">Other Misc Settings</a>, Previous: <a href="Messages_002fWarnings.html#Messages_002fWarnings" accesskey="p" rel="prev">Messages/Warnings</a>, Up: <a href="Controlling-GDB.html#Controlling-GDB" accesskey="u" rel="up">Controlling 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="Optional-Messages-about-Internal-Happenings"></a>
  64. <h3 class="section">22.10 Optional Messages about Internal Happenings</h3>
  65. <a name="index-optional-debugging-messages"></a>
  66. <p><small>GDB</small> has commands that enable optional debugging messages from
  67. various <small>GDB</small> subsystems; normally these commands are of
  68. interest to <small>GDB</small> maintainers, or when reporting a bug. This
  69. section documents those commands.
  70. </p>
  71. <dl compact="compact">
  72. <dd><a name="index-set-exec_002ddone_002ddisplay"></a>
  73. </dd>
  74. <dt><code>set exec-done-display</code></dt>
  75. <dd><p>Turns on or off the notification of asynchronous commands&rsquo;
  76. completion. When on, <small>GDB</small> will print a message when an
  77. asynchronous command finishes its execution. The default is off.
  78. <a name="index-show-exec_002ddone_002ddisplay"></a>
  79. </p></dd>
  80. <dt><code>show exec-done-display</code></dt>
  81. <dd><p>Displays the current setting of asynchronous command completion
  82. notification.
  83. <a name="index-set-debug"></a>
  84. <a name="index-ARM-AArch64"></a>
  85. </p></dd>
  86. <dt><code>set debug aarch64</code></dt>
  87. <dd><p>Turns on or off display of debugging messages related to ARM AArch64.
  88. The default is off.
  89. <a name="index-show-debug"></a>
  90. </p></dd>
  91. <dt><code>show debug aarch64</code></dt>
  92. <dd><p>Displays the current state of displaying debugging messages related to
  93. ARM AArch64.
  94. <a name="index-gdbarch-debugging-info"></a>
  95. <a name="index-architecture-debugging-info"></a>
  96. </p></dd>
  97. <dt><code>set debug arch</code></dt>
  98. <dd><p>Turns on or off display of gdbarch debugging info. The default is off
  99. </p></dd>
  100. <dt><code>show debug arch</code></dt>
  101. <dd><p>Displays the current state of displaying gdbarch debugging info.
  102. </p></dd>
  103. <dt><code>set debug aix-solib</code></dt>
  104. <dd><a name="index-AIX-shared-library-debugging"></a>
  105. <p>Control display of debugging messages from the AIX shared library
  106. support module. The default is off.
  107. </p></dd>
  108. <dt><code>show debug aix-thread</code></dt>
  109. <dd><p>Show the current state of displaying AIX shared library debugging messages.
  110. </p></dd>
  111. <dt><code>set debug aix-thread</code></dt>
  112. <dd><a name="index-AIX-threads"></a>
  113. <p>Display debugging messages about inner workings of the AIX thread
  114. module.
  115. </p></dd>
  116. <dt><code>show debug aix-thread</code></dt>
  117. <dd><p>Show the current state of AIX thread debugging info display.
  118. </p></dd>
  119. <dt><code>set debug check-physname</code></dt>
  120. <dd><a name="index-physname"></a>
  121. <p>Check the results of the &ldquo;physname&rdquo; computation. When reading DWARF
  122. debugging information for C<tt>++</tt>, <small>GDB</small> attempts to compute
  123. each entity&rsquo;s name. <small>GDB</small> can do this computation in two
  124. different ways, depending on exactly what information is present.
  125. When enabled, this setting causes <small>GDB</small> to compute the names
  126. both ways and display any discrepancies.
  127. </p></dd>
  128. <dt><code>show debug check-physname</code></dt>
  129. <dd><p>Show the current state of &ldquo;physname&rdquo; checking.
  130. </p></dd>
  131. <dt><code>set debug coff-pe-read</code></dt>
  132. <dd><a name="index-COFF_002fPE-exported-symbols"></a>
  133. <p>Control display of debugging messages related to reading of COFF/PE
  134. exported symbols. The default is off.
  135. </p></dd>
  136. <dt><code>show debug coff-pe-read</code></dt>
  137. <dd><p>Displays the current state of displaying debugging messages related to
  138. reading of COFF/PE exported symbols.
  139. </p></dd>
  140. <dt><code>set debug dwarf-die</code></dt>
  141. <dd><a name="index-DWARF-DIEs"></a>
  142. <p>Dump DWARF DIEs after they are read in.
  143. The value is the number of nesting levels to print.
  144. A value of zero turns off the display.
  145. </p></dd>
  146. <dt><code>show debug dwarf-die</code></dt>
  147. <dd><p>Show the current state of DWARF DIE debugging.
  148. </p></dd>
  149. <dt><code>set debug dwarf-line</code></dt>
  150. <dd><a name="index-DWARF-Line-Tables"></a>
  151. <p>Turns on or off display of debugging messages related to reading
  152. DWARF line tables. The default is 0 (off).
  153. A value of 1 provides basic information.
  154. A value greater than 1 provides more verbose information.
  155. </p></dd>
  156. <dt><code>show debug dwarf-line</code></dt>
  157. <dd><p>Show the current state of DWARF line table debugging.
  158. </p></dd>
  159. <dt><code>set debug dwarf-read</code></dt>
  160. <dd><a name="index-DWARF-Reading"></a>
  161. <p>Turns on or off display of debugging messages related to reading
  162. DWARF debug info. The default is 0 (off).
  163. A value of 1 provides basic information.
  164. A value greater than 1 provides more verbose information.
  165. </p></dd>
  166. <dt><code>show debug dwarf-read</code></dt>
  167. <dd><p>Show the current state of DWARF reader debugging.
  168. </p></dd>
  169. <dt><code>set debug displaced</code></dt>
  170. <dd><a name="index-displaced-stepping-debugging-info"></a>
  171. <p>Turns on or off display of <small>GDB</small> debugging info for the
  172. displaced stepping support. The default is off.
  173. </p></dd>
  174. <dt><code>show debug displaced</code></dt>
  175. <dd><p>Displays the current state of displaying <small>GDB</small> debugging info
  176. related to displaced stepping.
  177. </p></dd>
  178. <dt><code>set debug event</code></dt>
  179. <dd><a name="index-event-debugging-info"></a>
  180. <p>Turns on or off display of <small>GDB</small> event debugging info. The
  181. default is off.
  182. </p></dd>
  183. <dt><code>show debug event</code></dt>
  184. <dd><p>Displays the current state of displaying <small>GDB</small> event debugging
  185. info.
  186. </p></dd>
  187. <dt><code>set debug expression</code></dt>
  188. <dd><a name="index-expression-debugging-info"></a>
  189. <p>Turns on or off display of debugging info about <small>GDB</small>
  190. expression parsing. The default is off.
  191. </p></dd>
  192. <dt><code>show debug expression</code></dt>
  193. <dd><p>Displays the current state of displaying debugging info about
  194. <small>GDB</small> expression parsing.
  195. </p></dd>
  196. <dt><code>set debug fbsd-lwp</code></dt>
  197. <dd><a name="index-FreeBSD-LWP-debug-messages"></a>
  198. <p>Turns on or off debugging messages from the FreeBSD LWP debug support.
  199. </p></dd>
  200. <dt><code>show debug fbsd-lwp</code></dt>
  201. <dd><p>Show the current state of FreeBSD LWP debugging messages.
  202. </p></dd>
  203. <dt><code>set debug fbsd-nat</code></dt>
  204. <dd><a name="index-FreeBSD-native-target-debug-messages"></a>
  205. <p>Turns on or off debugging messages from the FreeBSD native target.
  206. </p></dd>
  207. <dt><code>show debug fbsd-nat</code></dt>
  208. <dd><p>Show the current state of FreeBSD native target debugging messages.
  209. </p></dd>
  210. <dt><code>set debug frame</code></dt>
  211. <dd><a name="index-frame-debugging-info"></a>
  212. <p>Turns on or off display of <small>GDB</small> frame debugging info. The
  213. default is off.
  214. </p></dd>
  215. <dt><code>show debug frame</code></dt>
  216. <dd><p>Displays the current state of displaying <small>GDB</small> frame debugging
  217. info.
  218. </p></dd>
  219. <dt><code>set debug gnu-nat</code></dt>
  220. <dd><a name="index-GNU_002fHurd-debug-messages"></a>
  221. <p>Turn on or off debugging messages from the <small>GNU</small>/Hurd debug support.
  222. </p></dd>
  223. <dt><code>show debug gnu-nat</code></dt>
  224. <dd><p>Show the current state of <small>GNU</small>/Hurd debugging messages.
  225. </p></dd>
  226. <dt><code>set debug infrun</code></dt>
  227. <dd><a name="index-inferior-debugging-info"></a>
  228. <p>Turns on or off display of <small>GDB</small> debugging info for running the inferior.
  229. The default is off. <samp>infrun.c</samp> contains GDB&rsquo;s runtime state machine used
  230. for implementing operations such as single-stepping the inferior.
  231. </p></dd>
  232. <dt><code>show debug infrun</code></dt>
  233. <dd><p>Displays the current state of <small>GDB</small> inferior debugging.
  234. </p></dd>
  235. <dt><code>set debug jit</code></dt>
  236. <dd><a name="index-just_002din_002dtime-compilation_002c-debugging-messages"></a>
  237. <p>Turn on or off debugging messages from JIT debug support.
  238. </p></dd>
  239. <dt><code>show debug jit</code></dt>
  240. <dd><p>Displays the current state of <small>GDB</small> JIT debugging.
  241. </p></dd>
  242. <dt><code>set debug lin-lwp</code></dt>
  243. <dd><a name="index-GNU_002fLinux-LWP-debug-messages"></a>
  244. <a name="index-Linux-lightweight-processes"></a>
  245. <p>Turn on or off debugging messages from the Linux LWP debug support.
  246. </p></dd>
  247. <dt><code>show debug lin-lwp</code></dt>
  248. <dd><p>Show the current state of Linux LWP debugging messages.
  249. </p></dd>
  250. <dt><code>set debug linux-namespaces</code></dt>
  251. <dd><a name="index-GNU_002fLinux-namespaces-debug-messages"></a>
  252. <p>Turn on or off debugging messages from the Linux namespaces debug support.
  253. </p></dd>
  254. <dt><code>show debug linux-namespaces</code></dt>
  255. <dd><p>Show the current state of Linux namespaces debugging messages.
  256. </p></dd>
  257. <dt><code>set debug mach-o</code></dt>
  258. <dd><a name="index-Mach_002dO-symbols-processing"></a>
  259. <p>Control display of debugging messages related to Mach-O symbols
  260. processing. The default is off.
  261. </p></dd>
  262. <dt><code>show debug mach-o</code></dt>
  263. <dd><p>Displays the current state of displaying debugging messages related to
  264. reading of COFF/PE exported symbols.
  265. </p></dd>
  266. <dt><code>set debug notification</code></dt>
  267. <dd><a name="index-remote-async-notification-debugging-info"></a>
  268. <p>Turn on or off debugging messages about remote async notification.
  269. The default is off.
  270. </p></dd>
  271. <dt><code>show debug notification</code></dt>
  272. <dd><p>Displays the current state of remote async notification debugging messages.
  273. </p></dd>
  274. <dt><code>set debug observer</code></dt>
  275. <dd><a name="index-observer-debugging-info"></a>
  276. <p>Turns on or off display of <small>GDB</small> observer debugging. This
  277. includes info such as the notification of observable events.
  278. </p></dd>
  279. <dt><code>show debug observer</code></dt>
  280. <dd><p>Displays the current state of observer debugging.
  281. </p></dd>
  282. <dt><code>set debug overload</code></dt>
  283. <dd><a name="index-C_002b_002b-overload-debugging-info"></a>
  284. <p>Turns on or off display of <small>GDB</small> C<tt>++</tt> overload debugging
  285. info. This includes info such as ranking of functions, etc. The default
  286. is off.
  287. </p></dd>
  288. <dt><code>show debug overload</code></dt>
  289. <dd><p>Displays the current state of displaying <small>GDB</small> C<tt>++</tt> overload
  290. debugging info.
  291. <a name="index-expression-parser_002c-debugging-info"></a>
  292. <a name="index-debug-expression-parser"></a>
  293. </p></dd>
  294. <dt><code>set debug parser</code></dt>
  295. <dd><p>Turns on or off the display of expression parser debugging output.
  296. Internally, this sets the <code>yydebug</code> variable in the expression
  297. parser. See <a href="http://www.gnu.org/software/bison/manual/html_node/Tracing.html#Tracing">Tracing Your Parser</a> in <cite>Bison</cite>, for
  298. details. The default is off.
  299. </p></dd>
  300. <dt><code>show debug parser</code></dt>
  301. <dd><p>Show the current state of expression parser debugging.
  302. <a name="index-packets_002c-reporting-on-stdout"></a>
  303. <a name="index-serial-connections_002c-debugging"></a>
  304. <a name="index-debug-remote-protocol"></a>
  305. <a name="index-remote-protocol-debugging"></a>
  306. <a name="index-display-remote-packets"></a>
  307. </p></dd>
  308. <dt><code>set debug remote</code></dt>
  309. <dd><p>Turns on or off display of reports on all packets sent back and forth across
  310. the serial line to the remote machine. The info is printed on the
  311. <small>GDB</small> standard output stream. The default is off.
  312. </p></dd>
  313. <dt><code>show debug remote</code></dt>
  314. <dd><p>Displays the state of display of remote packets.
  315. </p>
  316. </dd>
  317. <dt><code>set debug remote-packet-max-chars</code></dt>
  318. <dd><p>Sets the maximum number of characters to display for each remote packet when
  319. <code>set debug remote</code> is on. This is useful to prevent <small>GDB</small> from
  320. displaying lengthy remote packets and polluting the console.
  321. </p>
  322. <p>The default value is <code>512</code>, which means <small>GDB</small> will truncate each
  323. remote packet after 512 bytes.
  324. </p>
  325. <p>Setting this option to <code>unlimited</code> will disable truncation and will output
  326. the full length of the remote packets.
  327. </p></dd>
  328. <dt><code>show debug remote-packet-max-chars</code></dt>
  329. <dd><p>Displays the number of bytes to output for remote packet debugging.
  330. </p>
  331. </dd>
  332. <dt><code>set debug separate-debug-file</code></dt>
  333. <dd><p>Turns on or off display of debug output about separate debug file search.
  334. </p></dd>
  335. <dt><code>show debug separate-debug-file</code></dt>
  336. <dd><p>Displays the state of separate debug file search debug output.
  337. </p>
  338. </dd>
  339. <dt><code>set debug serial</code></dt>
  340. <dd><p>Turns on or off display of <small>GDB</small> serial debugging info. The
  341. default is off.
  342. </p></dd>
  343. <dt><code>show debug serial</code></dt>
  344. <dd><p>Displays the current state of displaying <small>GDB</small> serial debugging
  345. info.
  346. </p></dd>
  347. <dt><code>set debug solib-frv</code></dt>
  348. <dd><a name="index-FR_002dV-shared_002dlibrary-debugging"></a>
  349. <p>Turn on or off debugging messages for FR-V shared-library code.
  350. </p></dd>
  351. <dt><code>show debug solib-frv</code></dt>
  352. <dd><p>Display the current state of FR-V shared-library code debugging
  353. messages.
  354. </p></dd>
  355. <dt><code>set debug symbol-lookup</code></dt>
  356. <dd><a name="index-symbol-lookup"></a>
  357. <p>Turns on or off display of debugging messages related to symbol lookup.
  358. The default is 0 (off).
  359. A value of 1 provides basic information.
  360. A value greater than 1 provides more verbose information.
  361. </p></dd>
  362. <dt><code>show debug symbol-lookup</code></dt>
  363. <dd><p>Show the current state of symbol lookup debugging messages.
  364. </p></dd>
  365. <dt><code>set debug symfile</code></dt>
  366. <dd><a name="index-symbol-file-functions"></a>
  367. <p>Turns on or off display of debugging messages related to symbol file functions.
  368. The default is off. See <a href="Files.html#Files">Files</a>.
  369. </p></dd>
  370. <dt><code>show debug symfile</code></dt>
  371. <dd><p>Show the current state of symbol file debugging messages.
  372. </p></dd>
  373. <dt><code>set debug symtab-create</code></dt>
  374. <dd><a name="index-symbol-table-creation"></a>
  375. <p>Turns on or off display of debugging messages related to symbol table creation.
  376. The default is 0 (off).
  377. A value of 1 provides basic information.
  378. A value greater than 1 provides more verbose information.
  379. </p></dd>
  380. <dt><code>show debug symtab-create</code></dt>
  381. <dd><p>Show the current state of symbol table creation debugging.
  382. </p></dd>
  383. <dt><code>set debug target</code></dt>
  384. <dd><a name="index-target-debugging-info"></a>
  385. <p>Turns on or off display of <small>GDB</small> target debugging info. This info
  386. includes what is going on at the target level of GDB, as it happens. The
  387. default is 0. Set it to 1 to track events, and to 2 to also track the
  388. value of large memory transfers.
  389. </p></dd>
  390. <dt><code>show debug target</code></dt>
  391. <dd><p>Displays the current state of displaying <small>GDB</small> target debugging
  392. info.
  393. </p></dd>
  394. <dt><code>set debug timestamp</code></dt>
  395. <dd><a name="index-timestamping-debugging-info"></a>
  396. <p>Turns on or off display of timestamps with <small>GDB</small> debugging info.
  397. When enabled, seconds and microseconds are displayed before each debugging
  398. message.
  399. </p></dd>
  400. <dt><code>show debug timestamp</code></dt>
  401. <dd><p>Displays the current state of displaying timestamps with <small>GDB</small>
  402. debugging info.
  403. </p></dd>
  404. <dt><code>set debug varobj</code></dt>
  405. <dd><a name="index-variable-object-debugging-info"></a>
  406. <p>Turns on or off display of <small>GDB</small> variable object debugging
  407. info. The default is off.
  408. </p></dd>
  409. <dt><code>show debug varobj</code></dt>
  410. <dd><p>Displays the current state of displaying <small>GDB</small> variable object
  411. debugging info.
  412. </p></dd>
  413. <dt><code>set debug xml</code></dt>
  414. <dd><a name="index-XML-parser-debugging"></a>
  415. <p>Turn on or off debugging messages for built-in XML parsers.
  416. </p></dd>
  417. <dt><code>show debug xml</code></dt>
  418. <dd><p>Displays the current state of XML debugging messages.
  419. </p></dd>
  420. </dl>
  421. <hr>
  422. <div class="header">
  423. <p>
  424. Next: <a href="Other-Misc-Settings.html#Other-Misc-Settings" accesskey="n" rel="next">Other Misc Settings</a>, Previous: <a href="Messages_002fWarnings.html#Messages_002fWarnings" accesskey="p" rel="prev">Messages/Warnings</a>, Up: <a href="Controlling-GDB.html#Controlling-GDB" accesskey="u" rel="up">Controlling 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>
  425. </div>
  426. </body>
  427. </html>