Since commit
981c08ce72 "Change how complex types are printed in C", we see
these FAILs:
...
FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: info args in frame #6
FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c: info args in frame #6
FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c: info args in frame #7
FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c++: info args in frame #6
FAIL: gdb.fortran/mixed-lang-stack.exp: lang=c++: info args in frame #7
...
The problem is that printing of complex types has changed from:
...
d = 4 + 5 * I
...
to:
...
d = 4 + 5i
...
but the test-case still checks for the old printing style.
Fix this by updating the test-case to check for the new style.
gdb/testsuite/ChangeLog:
2020-04-02 Tom de Vries <tdevries@suse.de>
* gdb.fortran/mixed-lang-stack.exp: Accept new complex printing style.
+2020-04-02 Tom de Vries <tdevries@suse.de>
+
+ * gdb.fortran/mixed-lang-stack.exp: Accept new complex printing style.
+
2020-04-01 Tom Tromey <tom@tromey.com>
* gdb.base/complex-parts.exp: Add type tests.
set d_pattern "\\(4,5\\)"
set f_pattern "$hex 'abcdef\\\\000'"
} else {
- set d_pattern "4 \\+ 5 \\* I"
+ set d_pattern "4 \\+ 5i"
set f_pattern "$hex \"abcdef\""
}
"info frame in frame #7"
if { $lang == "c" || $lang == "c++" } {
- set d_pattern "4 \\+ 5 \\* I"
+ set d_pattern "4 \\+ 5i"
set e_pattern "\"abcdef\""
set g_pattern "\{a = 1.5, b = 2.5\}"
} else {