About 7,760 results
Open links in new tab
  1. How to modify memory contents using GDB? - Stack Overflow

    Jul 22, 2010 · I know that we can use several commands to access and read memory: for example, print, p, x... But how can I change the contents of memory at any specific location (while debugging …

  2. Memory (Debugging with GDB) - sourceware.org

    Memory (Debugging with GDB) Each time you specify a unit size with x, that size becomes the default unit the next time you use x. For the ‘ i ’ format, the unit size is ignored and is normally not written. …

  3. How can I change the value of a variable while debugging?

    Dec 31, 2014 · The document that I'm using doesn't seem to have this command. Edit I've since learned that I can change the state of objects in memory by simply calling their functions! So to modify an …

  4. Debugging with GDB - Examining Data

    If GDB is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command. This limit also applies to the display of strings.

  5. In gdb, how can I write a string to memory? - Stack Overflow

    Oct 21, 2013 · 12 It is quite straightforward to write ints or hexadecimals to a memory address with gdb: (gdb) set {int}0x08040000 = 42 (gdb) set {int}0x08040000 = 0xffffffff But how can I write chars or …

  6. GDB Tutorial for Reverse Engineers: Breakpoints, Modifying ...

    Apr 8, 2021 · Modifying memory is similar to modifying registers in the sense that any memory location can be a variable in GDB. So in my example, I want to change the contents of the format string “x = …

  7. Variables and memory print/format <what> Print content of variable/memory locati-on/register. display/format <what> Like „print“, but print the information after each stepping instruction. undisplay …

  8. Debugging with GDB - Memory - GNU

    Instead, GDB makes these values available for subsequent use in expressions as values of the convenience variables $_ and $__. After an x command, the last address examined is available for …