title: GDB: Is there a command that allows you to see how many times a function has been called?
body: <p>I am currently having to write implementations of malloc() and free(), and am given a driver program that will run my two implementations.</p>
  
  <p>But currently, I am segfaulting because free() is trying to free a payload size that is well in the billions of bytes (which is wrong). I have the line and line number from running GDB, but I need to know if malloc() and free() have been called more than once, to confirm that there is indeed <em>at least one</em> case where it runs smoothly.</p>