add a check for gdb