gdb loads incorrect binary file – help!!

Well, I have spent like half an hour trying to figure out why gdb loads incorrect executable :)

Solution was simpler than I would expect. I have simply forgotten that there is something like

~/.gdbinit

and I have used it recently with automation settings for some other session :)

So, remember to clear this file after you are finished with some strange debugging sessions.