About 18,300 results
Open links in new tab
  1. Output Formats (Debugging with GDB) - sourceware.org

    Output Formats (Debugging with GDB) By default, GDB prints a value according to its data type. Sometimes this is not what you want. For example, you might want to print a number in hex, or a …

  2. Output Formats (Debugging with GDB) - Get docs

    With this format, pointers to single-byte data are displayed as null-terminated strings and arrays of single-byte data are displayed as fixed-length strings. Other values are displayed in their natural …

  3. Debugging with GDB - Examining Data

    If you omit exp, GDB displays the last value again (from the value history; see section Value history). This allows you to conveniently inspect the same value in an alternative format.

  4. c - Formatted printing in GDB - Stack Overflow

    Jan 12, 2012 · I'd like to do printf style printing from GDB. For instance, I want to print a variable value, but with some text to describe what it is. Can it be done, and if so, can you give an example?

  5. Debugging with GDB - Output Formats - GNU

    By default, GDB prints a value according to its data type. Sometimes this is not what you want. For example, you might want to print a number in hex, or a pointer in decimal. Or you might want to view …

  6. How can the result of print-like formatting be used in a gdb ...

    Mar 22, 2023 · Using GDB's Python extension, you can run any GDB command and put its output into a convenience variable, whose type will be an array of characters. You can then use this convenience …

  7. Debugging with gdb - Formatting Documentation

    Formatting Documentation The GDB 4 release includes an already-formatted reference card, ready for printing with PostScript or Ghostscript, in the `gdb' subdirectory of the main source directory (7). If …

  8. Formatting Documentation (Debugging with GDB) - sourceware.org

    The GDB 4 release includes an already-formatted reference card, ready for printing with PostScript or Ghostscript, in the gdb subdirectory of the main source directory 20. If you can use PostScript or …