gdb: adding a patch to handle well the edit cmd + SIGWINCH.

It's reported to upstream since two years ago, through
their patches mailing list.