title: How to do an specific action when a certain breakpoint is hit in GDB?
body: <p>I am looking for a way to do some action when a particular break point hits in gdb. </p>
  
  <p>Basically I have some memleak in my program. When malloc and free function hits, I need to enter into the function (step) and collect some basic information like the addr and size (basically print there values). Once done resume my program.</p>
  
  <p>Do we have any good way to do this?</p>