[gdb/testsuite] Rewrite strings in gdb.ada/unchecked_union.exp

In test-case gdb.ada/unchecked_union.exp, git --check reports some whitespace
issues:
...
$ git diff-tree --check $(git hash-object -t tree /dev/null) HEAD \
    -- gdb/testsuite/gdb.ada/unchecked_union.exp \
    | grep -c "indent with spaces"
12
...

The problem is that this style of string is used containing space-indented
text:
...
set inner_string {    case ? is
        when 0 =>
            small: range 0 .. 255;
            second: range 0 .. 255;
        when ? =>
            bval: range 0 .. 255;
        when others =>
            large: range 255 .. 510;
            more: range 255 .. 510;
    end case;
}
...

Fix this by changing the string into a list of strings:
...
set inner_string \
    [list \
	 "    case ? is" \
	 "        when 0 =>" \
	 "            small: range 0 .. 255;" \
	 "            second: range 0 .. 255;" \
	 "        when ? =>" \
	 "            bval: range 0 .. 255;" \
	 "        when others =>" \
	 "            large: range 255 .. 510;" \
	 "            more: range 255 .. 510;" \
	 "    end case;"]
...
which also fixes the odd position of the first line in the original version.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>

PR build/33616
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33616
1 file changed