This might be old news for the more experienced programmers out there, but yes,
we can script GDB to do $stuff whenever it hits a breakpoint. With GDB's
logging to file feature this can be super handy when trying to get a backlog of
backtraces whenever a certain event arises.