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