title: GDB - how to find out from where program exited
body: <p>While debugging a program in GDB, I get an unexpected "program exited normally". So I'm wondering if is there a way to find out from where (which line) the program exited. </p>
  
  <p>Program is multi-threaded, if that matters.</p>