title: Assembly GDB Print String
body: <p>So in assembly I declare the following String:</p>
  
  <pre><code>Sample db "This is a sample string",0
  </code></pre>
  
  <p>In GDB I type "p Sample" (without quotes) and it spits out 0x73696854. I want the actual String to print out. So I tried "printf "%s", Sample" (again, without quotes) and it spits out "Cannot access memory at address 0x73696854."</p>
  
  <p>Short version:
  How do I print a string in GDB?</p>