0

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?

1
  • Added an answer, thanks. Commented Jul 12, 2018 at 10:35

1 Answer 1

1

AFAIK, that is not possible.

Another way is to just rsync the sources onto the remote machine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.