Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22046

Infering the source line number from C++ core dump

$
0
0

I have a stripped down linux system for which i have to cross compile all the applications i need, on another system. These applications core often and the only information i get from it is the function which cored and the instruction offset. If i have no other option, i do an objdump on the executable, and try to guess the source code from the instruction offset and assembly snippets. This is my life.

Note: The applications are cross-compiled using g++ and are stripped down. So gdb have not helped me much

Question: Since the compiler/gcc has converted the source lines to assembly instructions, wouldnt there be some option which would give a correlation between the instruction offset and the line?


Viewing all articles
Browse latest Browse all 22046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>