title: How do I set a break point to stop before entering the main program (or function) (GDB)
body: <p>I know how to set breakpoints at specific lines (so I could set a break at line 1)
  or i can also do : </p>
  
  <p>break main (to set a break point at the entering of the main program)</p>
  
  <p>but how do you set a break point BEFORE it enters a certain function or the main program? </p>
  
  <p>also if anyone has the time. how do you start execution of a gdb program at a specific breakpoint (say if i set a breakpoint at line 7). </p>