Porting the gdb automation