Added some custom functions for gdb