title: Infering the source line number from C++ core dump
body: <p>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.</p>
  
  <p>Note: The applications are cross-compiled using g++ and are stripped down. So gdb have not helped me much</p>
  
  <p>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?</p>