encapsulate gdb stdin in GDB struct
fix a warning