About 10,100 results
Open links in new tab
  1. Variables (Debugging with GDB) - sourceware.org

    Here file or function is the name of the context for the static variable. In the case of file names, you can use quotes to make sure GDB parses the file name as a single word—for example, to print a global …

  2. How to monitor variables in GDB and log it if it meets ...

    4 You can use watchpoints to make gdb monitor the value of a variable, and break execution of the program when the value changes. Once execution is stopped, you can use gdb's command set to …

  3. Debugging with GDB - Examining Data

    The variable $__ is automatically set by the x command to the value found in the last address examined. Its type is chosen to match the format in which the data was printed.

  4. GDB - Viewing Data — Debugging documentation - UNSW Sites

    Introduction In order to check where the program stops behaving as it should, GDB allows you to check that the values of the variables are as you expect. Commands such as print and info locals allow us to …

  5. GDB: Practical Commands and Functionalities - freecoder.dev

    Jul 21, 2024 · Printing a string variable's value helps in debugging issues related to string handling. Example: (gdb) print my_string This command prints the value of my_string. GDB Dump Registers …

  6. Debugging with GDB - Variables - GNU

    GDB also supports use of the C ++ scope resolution operator in GDB expressions. Warning: Occasionally, a local variable may appear to have the wrong value at certain points in a function--just after entry to a …

  7. Debugging with gdb - Examining Data - Apple Developer

    Expressions print and many other GDB commands accept an expression and compute its value. Any kind of constant, variable or operator defined by the programming language you are using is valid in …

  8. GDB Command Reference - print command - VisualGDB

    Previous value number When this format is used and i is specified as the previous value number, the print command will repeat the output produced by its i-th invocation. Type/Address This format allows …