I have started running the gdb with a executable say out1 i.e gdb out1 . Now I realised that I missed to add few checks in the code and upon adding the code I generated the new exec file say out2. Now is it possible to add this out2 to the already running gdb out1 so that I can debug with the new added checks exec code. Thanks for your time.