I discovered that multiple target remote sessions within a single gdb session would not reset the fileio state. This meant that all but the first target connection found stdout available for instance. This patch adds a reset function and calls it when reinitiating remote connections. Tested manually, ok? nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk