Lines Matching full:print
76 * Formatting Documentation:: How to format and print GDB documentation
546 quotes we specified. We use the command `p' (`print') to see their
586 set them to better values using the `p' command, since it can print the
811 "Quiet". Do not print the introductory and copyright messages.
889 a subprocess. It tells GDB to modify its print routines so as to
950 This option causes GDB to print statistics about time and memory
954 This option causes GDB to print its version number and no-warranty
1552 stopped, you may call functions in your program, using the `print' or
1658 Print the value of environment variable VARNAME to be given to
1659 your program when it starts. If you do not supply VARNAME, print
1713 Print the GDB working directory.
2097 Print a list of all forked processes under the control of GDB.
2478 Print a table of all breakpoints, watchpoints, and catchpoints set
2479 and not deleted. Optional argument N means print information only
2675 with the `awatch' or `rwatch' command, it will print a message like
2716 If you call a function interactively using `print' or `call', any
2899 print a list of breakpoints, watchpoints, and catchpoints if you do not
2976 that log program progress, or to use your own print functions to format
3059 example, you might want to print the values of certain expressions, or
3091 be desirable for breakpoints that are to print a specific message and
3092 then continue. If none of the remaining commands print anything, you
3096 The commands `echo', `output', and `printf' allow you to print
3100 For example, here is how you could use breakpoint commands to print
3175 print an error message:
3369 frame returns. Print the returned value (if any).
3503 Print a table of all the kinds of signals and how GDB has been
3508 Similar, but print information only about the specified signal
3525 still print a message telling you that the signal has come in.
3529 implies the `print' keyword as well.
3531 `print'
3532 GDB should print a message when this signal happens.
3558 `print', `pass' for the erroneous signals.
3759 another, and to print the stack frame you select. ARGS may be
3781 Print a backtrace of the entire stack: one line per frame for all
3789 Similar, but print only the innermost N frames.
3793 Similar, but print only the outermost N frames.
3799 Print the values of the local variables also. N specifies the
3800 number of frames to print, as described above.
3814 print address off'. The backtrace also shows the source file name and
3980 There are several other commands to print information about the selected
4019 Print a verbose description of the frame at address ADDR, without
4026 Print the arguments of the selected frame, each on a separate line.
4029 Print the local variables of the selected frame, each on a separate
4035 Print a list of all the exception handlers that are active in the
4048 GDB can print parts of your program's source, since the debugging
4053 execution in that frame has stopped. You can print other portions of
4074 To print lines from a source file, use the `list' command (abbreviated
4076 specify what part of the file you want to print.
4081 Print lines centered around line number LINENUM in the current
4085 Print lines centered around the beginning of function FUNCTION.
4088 Print more lines. If the last lines printed were printed with a
4095 Print lines just before the lines last printed.
4119 Print lines centered around the line specified by LINESPEC.
4122 Print lines from FIRST to LAST. Both arguments are linespecs.
4125 Print lines ending with LAST.
4128 Print lines starting with FIRST.
4131 Print lines just after the lines last printed.
4134 Print lines just before the lines last printed.
4181 to specify what part of the file you want to print if you want to see
4365 Print the source path: show which directories it contains.
4405 If a path is specified, then print the source path substitution
4408 If no path is specified, then print all existing source path
4437 Print the starting and ending addresses of the compiled code for
4509 The usual way to examine data in your program is with the `print'
4514 `print EXPR'
4515 `print /F EXPR'
4522 `print'
4523 `print /F'
4535 rather than `print'. *Note Examining the Symbol Table: Symbols.
4545 * Print Settings:: Print settings
4565 `print' and many other GDB commands accept an expression and compute
4575 `print {1, 2, 3}' to build up an array in memory that is `malloc'ed in
4657 GDB parses the file name as a single word--for example, to print a
4687 will print a message like this:
4701 If you ask to print an object whose contents are unknown to GDB,
4712 It is often useful to print out several successive objects of the same
4728 you can print the contents of `array' with
4774 this is not what you want. For example, you might want to print a
4778 print a value.
4780 The simplest use of output formats is to say how to print a value
4782 `print' command with a slash and a format letter. The format letters
4786 Regard the bits of the value as an integer, and print the integer
4790 Print as integer in signed decimal.
4793 Print as integer in unsigned decimal.
4796 Print as integer in octal.
4799 Print as integer in binary. The letter `t' stands for "two". (1)
4802 Print as an address, both absolute in hexadecimal and as an offset
4813 Regard as an integer and print it as a character constant. This
4819 Regard the bits of the value as a floating point number and print
4822 For example, to print the program counter in hex (*note
4831 format, you can use the `print' command with just a format and no
4865 The display format is one of the formats used by `print' (`x',
4869 time you use either `x' or `print'.
4899 `print' (if you use it to display a value from memory).
4956 File: gdb.info, Node: Auto Display, Next: Print Settings, Prev: Memory, Up: Data
4961 If you find that you want to print the value of an expression frequently
4972 As with displays you request manually using `x' or `print', you can
4974 whether to use `print' or `x' depending on how elaborate your format
4977 uses `print'.
5023 Print the list of expressions previously set up to display
5042 File: gdb.info, Node: Print Settings, Next: Value History, Prev: Auto Display, Up: Data
5044 8.7 Print settings
5052 `set print address'
5053 `set print address on'
5058 like with `set print address on':
5065 `set print address off'
5066 Do not print addresses when displaying their contents. For
5067 example, this is the same stack frame displayed with `set print
5070 (gdb) set print addr off
5075 You can use `set print address off' to eliminate all machine
5077 `print address off', you should get the same text for backtraces on
5080 `show print address'
5088 GDB to print the source file and line number when it prints a symbolic
5091 `set print symbol-filename on'
5092 Tell GDB to print the source file name and line number of a symbol
5095 `set print symbol-filename off'
5096 Do not print source file name and line number of a symbol. This
5099 `show print symbol-filename'
5100 Show whether or not GDB will print the source file name and line
5110 `set print max-symbolic-offset MAX-OFFSET'
5114 print the symbolic form of an address if any symbol precedes it.
5116 `show print max-symbolic-offset'
5121 print symbol-filename on'. Then you can determine the name and source
5127 (gdb) set print symbol-filename on
5133 the appropriate `set print' options turned on.
5137 `set print array'
5138 `set print array on'
5139 Pretty print arrays. This format is more convenient to read, but
5142 `set print array off'
5145 `show print array'
5149 `set print array-indexes'
5150 `set print array-indexes on'
5151 Print the index of each element when displaying arrays. May be
5156 `set print array-indexes off'
5159 `show print array-indexes'
5163 `set print elements NUMBER-OF-ELEMENTS'
5164 Set a limit on how many elements of an array GDB will print. If
5166 printed the number of elements set by the `set print elements'
5171 `show print elements'
5173 print. If the number is 0, then the printing is unlimited.
5175 `set print repeats'
5184 `show print repeats'
5188 `set print null-stop'
5193 `show print null-stop'
5197 `set print pretty on'
5198 Cause GDB to print structures in an indented format with one member
5210 `set print pretty off'
5211 Cause GDB to print structures in a compact format, like this:
5218 `show print pretty'
5219 Show which format GDB is using to print structures.
5221 `set print sevenbit-strings on'
5222 Print using only seven-bit characters; if this option is set, GDB
5228 `set print sevenbit-strings off'
5229 Print full eight-bit characters. This allows the use of more
5232 `show print sevenbit-strings'
5235 `set print union on'
5236 Tell GDB to print unions which are contained in structures and
5239 `set print union off'
5240 Tell GDB not to print unions which are contained in structures and
5241 other unions. GDB will print `"{...}"' instead.
5243 `show print union'
5244 Ask GDB whether or not it will print unions which are contained in
5264 with `set print union on' in effect `p foo' would print
5268 and with `set print union off' in effect it would print
5272 `set print union' affects programs written in C-like languages and
5277 `set print demangle'
5278 `set print demangle on'
5279 Print C++ names in their source form rather than in the encoded
5283 `show print demangle'
5286 `set print asm-demangle'
5287 `set print asm-demangle on'
5288 Print C++ names in their source form rather than their mangled
5292 `show print asm-demangle'
5327 `set print object'
5328 `set print object on'
5333 `set print object off'
5337 `show print object'
5340 `set print static-members'
5341 `set print static-members on'
5342 Print static members when displaying a C++ object. The default is
5345 `set print static-members off'
5346 Do not print static members when displaying a C++ object.
5348 `show print static-members'
5351 `set print pascal_static-members'
5352 `set print pascal_static-members on'
5353 Print static members when displaying a Pascal object. The default
5356 `set print pascal_static-members off'
5357 Do not print static members when displaying a Pascal object.
5359 `show print pascal_static-members'
5362 `set print vtbl'
5363 `set print vtbl on'
5364 Pretty print C++ virtual function tables. The default is off.
5368 `set print vtbl off'
5369 Do not pretty print C++ virtual function tables.
5371 `show print vtbl'
5376 File: gdb.info, Node: Value History, Next: Convenience Vars, Prev: Print Settings, Up: Data
5381 Values printed by the `print' command are saved in the GDB "value
5390 `print' shows you the history number assigned to a value by printing
5394 history number. The way `print' labels its output is designed to
5406 to the next one, you can print the contents of the next one with this:
5410 You can print successive links in the chain by repeating this
5416 print x
5419 then the value recorded in the value history by the `print' command
5423 Print the last ten values in the value history, with their item
5428 Print ten history values centered on history item number N.
5431 Print ten history values just after the values last printed. If
5475 Print a list of convenience variables used so far, and their
5490 incremented or a pointer to be advanced. For example, to print a field
5494 print bar[$i++]->contents
5535 Print the names and values of all registers except floating-point
5539 Print the names and values of all registers, including
5543 Print the "relativized" value of each specified register REGNAME.
5555 processor status. For example, you could print the program counter in
5560 or print the instruction to be executed next with
5581 (although you can _print_ it as a floating point value with `print/f
5600 (gdb) print $xmm1
5754 Print a table of all defined memory regions, with the following
5935 translates between EBCDIC and Latin 1 as you print character or string
6049 the contents of `ascii_hello' print legibly:
6051 (gdb) print ascii_hello
6053 (gdb) print ascii_hello[0]
6060 (gdb) print '+'
6068 program uses. If we print `ibm1047_hello' while our target character
6071 (gdb) print ibm1047_hello
6073 (gdb) print ibm1047_hello[0]
6094 (gdb) print ascii_hello
6096 (gdb) print ascii_hello[0]
6098 (gdb) print ibm1047_hello
6100 (gdb) print ibm1047_hello[0]
6107 (gdb) print '+'
6136 Print the information about the data cache performance. The
6312 (gdb) print N Q M
6334 (gdb) print N Q M
6676 *all* GDB commands (`print', `info registers', `backtrace', etc.) will
6760 the trace buffer and print out whatever collected data you are
7103 (gdb) print main
7112 (gdb) print foo
7120 (gdb) print foo
7374 print a = b + c
7413 can use with commands such as `print' to build and compute
7458 expressions entered directly into GDB for evaluation via the `print'
7917 shown, unless you have specified `set print address off'.
7976 The `set print union' and `show print union' commands apply to the
8013 Print inheritance relationships as well as other information for
8016 `set print demangle'
8017 `show print demangle'
8018 `set print asm-demangle'
8019 `show print asm-demangle'
8022 *Note Print settings: Print Settings.
8024 `set print object'
8025 `show print object'
8026 Choose whether to print derived (actual) or declared types of
8027 objects. *Note Print settings: Print Settings.
8029 `set print vtbl'
8030 `show print vtbl'
8032 Print settings: Print Settings. (The `vtbl' commands do not work
8077 * The Print Command with Objective-C::
8080 File: gdb.info, Node: Method Names in Commands, Next: The Print Command with Objective-C, Prev: Objective-C, Up: Objective-C
8135 File: gdb.info, Node: The Print Command with Objective-C, Prev: Method Names in Commands, Up: Objective-C
8137 12.4.2.2 The Print Command With Objective-C
8140 The print command has also been extended to accept methods. For
8143 print -[OBJECT hash]
8145 will tell GDB to send the `hash' message to OBJECT and print the
8146 result. Also, an additional command has been added, `print-object' or
8147 `po' for short, which is meant to print
8227 The Pascal-specific command `set print pascal_static-members'
8229 pascal_static-members: Print Settings.
8518 Currently GDB can print the following data types in Modula-2 syntax:
8520 enumerated types, subrange types and base types. You can also print
8534 (gdb) print s
8538 (gdb) print r
8557 Modula-2 and how you can interact with GDB to print its type and
8584 (gdb) print s
8598 (gdb) print s
8742 Five subcommands of `set print' and `show print' apply specifically to
8955 print A(tmp := y + 1)
8966 special bracket notation, which is also used to print strings. A
8979 print 'max(x, y)
8984 with a lower bound of 3 might print as
9002 gdb print <JMPBUF_SAVE>[0]
9132 Note the contrast with `print &SYMBOL', which does not work at all
9137 Print the name of a symbol which is stored at the address ADDR.
9149 Print the data type of ARG, which can be either an expression or a
9150 data type. With no argument, print the data type of `$', the last
9200 Print a brief description of all types whose names match the
9209 `whatis', it does not print a detailed description; second, it
9252 Print the names of all source files in your program for which
9258 Print the names and data types of all defined functions.
9261 Print the names and data types of all defined functions whose
9270 Print the names and data types of all variables that are declared
9274 Print the names and data types of all variables (except for local
9332 `maint print symbols FILENAME'
9333 `maint print psymbols FILENAME'
9334 `maint print msymbols FILENAME'
9337 symbols with debugging data are included. If you use `maint print
9342 use `maint print psymbols' instead, the dump shows information
9345 completely. Finally, `maint print msymbols' dumps just the
9430 print x=4
9438 the `set' command instead of the `print' command. `set' is really the
9439 same as `print' except that the expression's value is not printed and
9613 `print EXPR'
9621 You can use this variant of the `print' command if you want to
9624 `void' returned values that GDB will otherwise print. If the
9627 It is possible for the function you call via the `print' or `call'
9889 `info files' and `info target' are synonymous; both print the
10021 Print the names of the shared libraries which are currently loaded.
10261 ill-constructed symbol tables, you can either ask GDB to print only one
10263 problem occurs; or you can ask GDB to print more messages, to see how
11366 This is a prefix of DJGPP-specific commands which print
11510 This is a prefix of MS Windows specific commands which print
11628 even `maint print msymbols' (see *note Symbols::). Here's an example:
11663 (gdb) print 'cygwin1!__argv'
11671 (gdb) print ((char **)'cygwin1!__argv')[0]
12259 breakpoints; the `run' command starts your program; `print' or `x'
12679 `htrace print [START [LEN]]'
13251 `maint print unwind ADDRESS'
13264 Print settings: Print Settings. Other settings are described here.
13349 value history; to print a value without recording it into the value
13350 history, use the `output' command instead of the `print' command.
13410 Print ten commands centered on command number N.
13413 Print ten commands just after the commands last printed.
13669 completion. When on, GDB will print a message when an
13815 print $arg0 + $arg1 + $arg2
13832 print $arg0 + $arg1
13835 print $arg0 + $arg1 + $arg2
13890 GDB commands that normally print messages to say what they are doing
13992 that normally print messages to say what they are doing omit the
14062 Print TEXT. Nonprinting characters can be included in TEXT using
14063 C escape sequences, such as `\n' to print a newline. *No newline
14068 otherwise trimmed from all arguments. To print ` and foo = ', use
14085 Print the value of EXPRESSION and nothing but that value: no
14091 Print the value of EXPRESSION in format FMT. You can use the same
14092 formats as for `print'. *Note Output formats: Output Formats, for
14096 Print the values of the EXPRESSIONS under the control of STRING.
14103 For example, you can print two values in hex like this:
14281 is demangled if demangling is turned on (*note Print Settings::).
15762 Print the arguments of the program.
16660 -stack-list-locals PRINT-VALUES
16663 PRINT-VALUES is 0 or `--no-values', print only the names of the
16664 variables; if it is 1 or `--all-values', print also their values; and
16665 if it is 2 or `--simple-values', print the name, type and value for
16786 `-var-info-expression' print what this variable object represents
16899 -var-list-children [PRINT-VALUES] NAME
16903 single argument or if PRINT-VALUES has a value for of 0 or
16904 `--no-values', print only the names of the variables; if PRINT-VALUES
16905 is 1 or `--all-values', also print their values; and if it is 2 or
16906 `--simple-values' print the name and value for simple data types and
17009 -var-update [PRINT-VALUES] {NAME | "*"}
17014 PRINT-VALUES determines whether names both and values, or just names
17182 The corresponding GDB commands are `print', `output', and `call'. In
17250 If integer numbers are given as arguments, it will print a list of the
17388 The format to be used to print the memory words. The notation is
17389 the same as for GDB's `print' command (*note Output formats:
17618 Print the list of lines that contain code and their associated
18793 arguments; you can also print it at any time using `show version'.
19361 `print-completions-horizontally'
20081 Print all of the functions and their key bindings to the Readline
20087 Print all of the settable variables and their values to the
20093 Print all of the Readline key sequences bound to macros and the
20299 Print the new command but do not execute it.
20330 Ghostscript with your printer, you can print the reference card
20338 The GDB reference card is designed to print in "landscape" mode on
20353 `gdb.info*' in the same directory. If necessary, you can print out
20368 If you want to typeset and print copies of this manual, you need TeX,
20369 a program to print its DVI output files, and `texinfo.tex', the Texinfo
20372 TeX is a typesetting program; it does not print files directly, but
20373 produces output files called DVI files. To print a typeset document,
20374 you need a program to print DVI files. If your system has TeX
20377 devices) is `dvips'. The DVI print command may require a file name
20387 and print this manual. First switch to the the `gdb' subdirectory of
20759 Print the first C++ class/namespace component of NAME.
20762 Print the list of possible C++ namespaces.
20807 `maint print architecture [FILE]'
20808 Print the entire architecture configuration. The optional argument
20811 `maint print dummy-frames'
20816 (gdb) print add(2,3)
20821 (gdb) maint print dummy-frames
20829 `maint print registers [FILE]'
20830 `maint print raw-registers [FILE]'
20831 `maint print cooked-registers [FILE]'
20832 `maint print register-groups [FILE]'
20833 Print GDB's internal register data structures.
20835 The command `maint print raw-registers' includes the contents of
20836 the raw register cache; the command `maint print cooked-registers'
20838 `maint print register-groups' includes the groups that each
20844 `maint print reggroups [FILE]'
20845 Print GDB's internal register group data structures. The optional
20850 (gdb) maint print reggroups
20863 `maint print objfiles'
20864 Print a dump of all known object files. For each object file, this
20868 `maint print statistics'
20881 `maint print type EXPR'
20882 Print the type chain for a type specified by EXPR. The argument
24017 As another example, here is a function which will print out the
24044 above will always print the saved memory regions in order of increasing
24318 interactive use in the most ordinary way, to print or display
24324 itself is interactive but does not normally print such an
24326 to print an announcement.)
25274 * _NSPrintForDebugger, and printing Objective-C objects: The Print Command with Objective-C.
25426 * C++ symbol decoding style: Print Settings. (line 255)
25614 * demangling C++ names: Print Settings. (line 236)
25617 * derived type of an object, printing: Print Settings. (line 288)
25645 * display derived types: Print Settings. (line 288)
25703 * eight-bit characters in strings: Print Settings. (line 181)
25803 * format options: Print Settings. (line 6)
25943 * indentation in structure display: Print Settings. (line 157)
26099 * limit on number of printed array elements: Print Settings. (line 123)
26176 * maint print architecture: Maintenance Commands.
26178 * maint print cooked-registers: Maintenance Commands.
26180 * maint print dummy-frames: Maintenance Commands.
26182 * maint print objfiles: Maintenance Commands.
26184 * maint print psymbols: Symbols. (line 250)
26185 * maint print raw-registers: Maintenance Commands.
26187 * maint print reggroups: Maintenance Commands.
26189 * maint print register-groups: Maintenance Commands.
26191 * maint print registers: Maintenance Commands.
26193 * maint print statistics: Maintenance Commands.
26195 * maint print symbols: Symbols. (line 250)
26196 * maint print type: Maintenance Commands.
26198 * maint print unwind, HPPA: HPPA. (line 17)
26232 * maximum value for offset of closest symbol: Print Settings. (line 70)
26320 * NULL elements in arrays: Print Settings. (line 148)
26321 * number of array elements to print: Print Settings. (line 123)
26327 * Objective-C, print objects: The Print Command with Objective-C.
26330 * octal escapes in strings: Print Settings. (line 181)
26372 * Pacal objects, static members display: Print Settings. (line 312)
26399 * po (print-object): The Print Command with Objective-C.
26402 * pointer, finding referent: Print Settings. (line 79)
26423 * pretty print arrays: Print Settings. (line 98)
26424 * pretty print C++ virtual function tables: Print Settings. (line 323)
26427 * print: Data. (line 6)
26428 * print an Objective-C object description: The Print Command with Objective-C.
26430 * print array indexes: Print Settings. (line 108)
26431 * print settings: Print Settings. (line 6)
26432 * print structures in indented form: Print Settings. (line 157)
26433 * print-object: The Print Command with Objective-C.
26435 * print/don't print memory addresses: Print Settings. (line 13)
26583 * repeated array elements: Print Settings. (line 135)
26706 * set demangle-style: Print Settings. (line 255)
26749 * set print: Print Settings. (line 11)
26892 * show print: Print Settings. (line 39)
26972 * source file and line of a symbol: Print Settings. (line 51)
27002 * static members of C++ objects: Print Settings. (line 301)
27003 * static members of Pacal objects: Print Settings. (line 312)
27039 * symbol decoding style, C++: Print Settings. (line 255)
27048 * symbol, source file and line: Print Settings. (line 51)
27194 * unions in structures, printing: Print Settings. (line 195)
27249 * virtual functions (C++) display: Print Settings. (line 323)
27252 * VTBL display: Print Settings. (line 323)
27269 * wild pointer, interpreting: Print Settings. (line 79)
27385 Node: Print Settings209682
27438 Node: The Print Command with Objective-C327140