Improve test gdb.dwarf2/dw2-ranges-func.exp