The patch below lets to build gdb with SUNWspro cc compiler. The problem is that gdb sources use on gnu c extension 'array of variable length'. -- Andrey