Followup fix
Use stdout for GDB data, move GDB functions into separate file