title: Can't set breakpoints when using gdb in emacs (or DDD)
body: <p>I'm trying to use gdb with emacs. The library that I'm trying to debug is loaded by a process and can't be run directly. Hence I attach to the process by using the attach command inside gdb. Attaching to a process and setting breakpoints works fine when I use gdb from a shell, but when I use gdb in emacs (by pressing M-x gdb or M-x gud-gdb), it can't set breakpoints. It shows me an error which says "Can't access memory at 0x7efb04". I'm using emacs 23.1.1. </p>
  
  <p>Here is a breakdown of the process I follow:</p>
  
  <ol>
  <li>Press <code>M-x gdb</code> or <code>M-x gud-gdb</code> to launch gdb inside emacs.</li>
  <li>Enter the name of the executable built with debugging symbols.</li>
  <li>Type "attach [PID]" to attach gdb to a running process.</li>
  <li>Set a breakpoint by typing: filename:line number.</li>
  </ol>
  
  <p>The last step gives me an error which says "Can't access memory at 0x7efb04".</p>
  
  <p>Any ideas why this is happening?</p>
  
  <p>EDIT : I get the same error when using DDD (UI for GDB). So I guess it's not an emacs specific issue.</p>