About 8,150 results
Open links in new tab
  1. How can I print in binary mode in GDB? - Stack Overflow

    Feb 2, 2024 · I tried b, but it seems not to work: (gdb) p/b 0x0000000000400398 Size letters are meaningless in "print" command. Is there such a switch?

  2. Output Formats (Debugging with GDB) - sourceware.org

    t Print the binary representation of the value in binary. The letter ‘ t ’ stands for “two”. 11 a Print as an address, both absolute in hexadecimal and as an offset from the nearest preceding symbol. You can …

  3. How to Print in Binary Mode in GDB: Troubleshooting 'p/b' Not ...

    Dec 6, 2025 · The GNU Debugger (GDB) is an indispensable tool for developers debugging C, C++, and other compiled languages. While GDB excels at inspecting variables, memory, and program flow, …

  4. Debugging with GDB - Examining Data

    Print using only seven-bit characters; if this option is set, GDB displays any eight-bit characters (in strings or character values) using the notation \nnn. This setting is best if you are working in English …

  5. Debugging with GDB - Output Formats - GNU

    o Print as integer in octal. t Print as integer in binary. The letter `t' stands for "two". (2) a Print as an address, both absolute in hexadecimal and as an offset from the nearest preceding symbol. You can …

  6. Read as integer, print as character. Integer, signed decimal. Floating point number. Integer, print as octal. Try to treat as C string. Integer, print as binary (t = „two“). Integer, unsigned decimal. Integer, …

  7. GDB Command Reference - print command - VisualGDB

    This page explains the print command. The print command prints the value of a given expression.

  8. Another gdb script to traverse a Binary Tree

    I looked for a gdb script that can print all the nodes of a binary tree but could not find a working one.