title: gdb can't access memory address error
body: <p>here is my disas code:</p>
  
  <pre><code>   0x0804844d &lt;+0&gt;:     push   %ebp
     0x0804844e &lt;+1&gt;:     mov    %esp,%ebp
     0x08048450 &lt;+3&gt;:     and    $0xfffffff0,%esp
     0x08048453 &lt;+6&gt;:     sub    $0x20,%esp
     0x08048456 &lt;+9&gt;:     movl   $0x8048540,(%esp)
     0x0804845d &lt;+16&gt;:    call   0x8048310 &lt;puts@plt&gt;
     0x08048462 &lt;+21&gt;:    lea    0x1c(%esp),%eax
     0x08048466 &lt;+25&gt;:    mov    %eax,0x4(%esp)
     0x0804846a &lt;+29&gt;:    movl   $0x8048555,(%esp)
     0x08048471 &lt;+36&gt;:    call   0x8048320 &lt;scanf@plt&gt;
     0x08048476 &lt;+41&gt;:    mov    0x1c(%esp),%eax
     0x0804847a &lt;+45&gt;:    cmp    $0x208c,%eax
     0x0804847f &lt;+50&gt;:    jne    0x804848f &lt;main+66&gt;
     0x08048481 &lt;+52&gt;:    movl   $0x8048558,(%esp)
     0x08048488 &lt;+59&gt;:    call   0x8048310 &lt;puts@plt&gt;
     0x0804848d &lt;+64&gt;:    jmp    0x804849b &lt;main+78&gt;
  =&gt; 0x0804848f &lt;+66&gt;:    movl   $0x8048569,(%esp)
     0x08048496 &lt;+73&gt;:    call   0x8048310 &lt;puts@plt&gt;
     0x0804849b &lt;+78&gt;:    mov    $0x0,%eax
     0x080484a0 &lt;+83&gt;:    leave  
     0x080484a1 &lt;+84&gt;:    ret 
  </code></pre>
  
  <p>what i'm tring to examine is $0x208c. When I type x/xw 0x208c it gives me back error which says Cannot access memory at address 0x208c. When i type Info registers and look at eax it says the value which i provided. So basically this program compares two values and depending on that prints something out.The problem is that this is homework from university and I have not got code. Hope you can help. Thank you.</p>