Attached is a patch that fix a problem of calculating console window size when gdb is hosted on windows. I already fixed this problem in gdb 6.4 version, that was integrated into readline (cf http://sources.redhat.com/ml/gdb-patches/2006-02/msg00245.html) , but the readline I got from the 6.5 version cancels the modification with some new code that overwrote variables I used. Denis