[cgdb](http://cgdb.github.io) is also a great option if you use Vim.