gdb stub overhaul