title: In gdb, how can I write a string to memory?
body: <p>It is quite straightforward to write ints or hexadecimals to a memory address with gdb:</p>
  
  <pre><code>(gdb) set {int}0x08040000 = 42
  (gdb) set {int}0x08040000 = 0xffffffff
  </code></pre>
  
  <p>But how can I write chars or entire strings in a similarly simple fashion to memory? Right now I have to resort to translating the string to hex and then entering that, which is time consuming.</p>