Debugging-Output.html 19 KB

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