I have a program that I need to debug on remote machine. Due to the issue character it should be run in a certain way, that I can't reproduce simply running there, so I put a sleep before the problematic area.
I am able to attach to the process with gdb during this sleep period, but I don't have source files on the remote machine.
Is it possible to compile program the way that sources will be built-in into binary itself?