« Return to Thread: GDB command to write to memory

Re: GDB command to write to memory

by Andreas Schwab :: Rate this Message:

Reply to Author | View in Thread

Guillaume MENANT <guillaume.menant@...> writes:

> The only solution i've found is the "set var" command but it's limited in
> use. Is there a more flexible command ?

(gdb) set {int}0xdeadbeef = 42

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@...
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

 « Return to Thread: GDB command to write to memory