Let me have C ++ code. I compile it with the command:
g++ -g code.cpp -o code.o Now I need to get the source code back, having only code.o
I'm definitely not sure that this is very simple, but I know that gdbtui (and, most likely, gdb) somehow gets this code and uses it for output to the user.
Task: Get the source code from a file compiled with the -g flag