possible fix for gdb hang