title: start gdb using a pid
body: <p>In general i see the process's <code>pid</code>  which is running in the background and start dbx on that process using the command <code>dbx -a &lt;pid&gt;</code></p>
  
  <p>similarly how could i do it using gdb?</p>