About 50,100,000 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 …

  2. GDB Command Reference - print command - VisualGDB

    Format If specified, allows overriding the output format used by the command. Valid format specifiers are: o - octal x - hexadecimal u - unsigned decimal t - binary f - floating point a - …

  3. 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 …

  4. Debugging with GDB - Examining Data

    Print as an address, both absolute in hexadecimal and as an offset from the nearest preceding symbol. You can use this format used to discover where (in what function) an unknown …

  5. Debugging with gdb - Examining Data - Apple Developer

    Examining Data The usual way to examine data in your program is with the print command (abbreviated p), or its synonym inspect. It evaluates and prints the value of an expression of …

  6. How to Use GDB for Debugging C/C++ Errors - LinuxConfig.org

    Sep 21, 2025 · Learn how to effectively debug C/C++ using GDB on Linux. Discover key GDB commands like backtrace & frame inspection to resolve core dumps.

  7. Printf-style debugging using GDB, Part 1 - Red Hat Developer

    Oct 5, 2021 · You can use the GDB debugger to understand program behavior without any source code changes. In Part 1, learn how to run virtual print statements.

  8. 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 …