# file: $isip/util/misc/diagnose_class/gdbinit_example.text
#

# source the dmalloc file
#
source /isip/tools/login/debugger_gdb_dmalloc_init.text
#source /isip/tools/login/debugger_gdb_dmallocrc.text

# setup the main program
#
file CLASS_NAME.exe

# set a breakpoint at the error handler
#
break 'Error::handle(SysString &, SysString &, long, char *, long, Error::EXIT)'

# set a breakpoint at the begining of the class diagnostic method
#
break 'CLASS_NAME<Char>::diagnose(Integral::DEBUG)' 

# run dmalloc to read options
#
dmalloc 

# run the program
#
run
