PDA

View Full Version : knowing abt


usha
01-21-2006, 06:26 AM
hi
how do i know the source file of an exe file in c under linux
thanking u sir
usha

RobSeace
01-21-2006, 05:43 PM
Huh? Not sure what you mean exactly... You mean, from a compiled binary
executable, you want to figure out what source files it was compiled from? Well,
I think you can only do that if you have compiled it with debugging info ("-g")...
Then, you could try something like "nm -l <binary>", which should give you source
files and line numbers of any symbols it can find... I think you can also find it
via "readelf --debug-dump", but that seems to spit out far too much info, so you'd
have to hunt for it...