Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to retrieve back the source code from unstripped binary in Linux?

I was working on some C++ source code, unexpectedly I deleted the source code. But still I have my unstripped binary. Is there any way that I can retrieve my source code from the unstripped binary.

I can use ARM gdb but binary is cross compiled one so I cannot run the binary in my host machine. Also gdb not present for target.

like image 465
Bhavith C Avatar asked Sep 02 '25 15:09

Bhavith C


1 Answers

No. Even an "unstripped" binary only has debugging information, but not the source code -- the debugger still takes that from the actual source file.

Learn using a revision control system such as git. If you put that on an external site such as github, you also have a great offsite backup...

like image 95
Christian Stieber Avatar answered Sep 05 '25 02:09

Christian Stieber