Alex
Alex

Reputation: 10136

GCC: make sources built-in into binary

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?

Upvotes: 0

Views: 52

Answers (1)

Maxim Egorushkin
Maxim Egorushkin

Reputation: 136495

AFAIK, that is not possible.

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

Upvotes: 1

Related Questions