title: GDB is running a deleted executable file
body: <p>I was debugging an <code>executable_file</code> which is generated from C++ codes. When I was in the middle of a GDB session, I changed the <code>source.cpp</code> files and recompiled them to regenerate a new <code>executable_file</code>. Now, GDB is running the old deleted <code>executable_file</code>, even though I have deleted that old file from my system. How this is possible? How can I force GDB to run the new <code>executable_file</code>?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>After restarting the system, everything worked fine for the first compilation, and  I could run the new <code>executable_file</code>. But I am observing the same issue for the next compilations. Nevertheless, when I remove <code>executable.o</code> and recompile everything look fine. </p>
  
  <p>Is this because of an issue in my makefile? Or I have broken something in my Unix system?</p>