[gdb/testsuite] Simplify gdb.base/complex-parts.exp

I noticed a lot of escaping in test-case gdb.base/complex-parts.exp.

Make the test-case more readable by using:
- string_to_regexp, and
- {} instead of "".

Tested on x86_64-linux and aarch64-linux.
1 file changed