title: How do I find segmentation fault from multiple files using GDB
body: <p>I have been asked in an interview <em>how can you debug segmentation fault in C program using GDB</em>. </p>
  
  <p>I told them we can compile our program with <code>-g</code> option so as it add debugging information to binary file and can read core dump file but then interviewer told me if he we have  3 to 4 files compiled together but one of them causing segmentation fault then how do we debug  in GDB?</p>