diff options
author | Tom de Vries <tdevries@suse.de> | 2021-07-05 16:26:42 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-07-05 16:26:42 +0200 |
commit | 2e333e797ed2663b58a44ada972d489564f8bfea (patch) | |
tree | 0260230116552f82630d8375bc3909310505c962 /gdb/testsuite/ChangeLog | |
parent | 99624310dd82542c389c89c2e55d8cae36bb74e1 (diff) | |
download | gdb-2e333e797ed2663b58a44ada972d489564f8bfea.zip gdb-2e333e797ed2663b58a44ada972d489564f8bfea.tar.gz gdb-2e333e797ed2663b58a44ada972d489564f8bfea.tar.bz2 |
[gdb/testsuite] Fix fail in gdb.fortran/ptype-on-functions.exp with gcc-7
Since commit 05b85772061 "gdb/fortran: Add type info of formal parameter for
clang" I see:
...
(gdb) ptype say_string^M
type = void (character*(*), integer(kind=4))^M
(gdb) FAIL: gdb.fortran/ptype-on-functions.exp: ptype say_string
...
The part of the commit causing the fail is:
...
gdb_test "ptype say_string" \
- "type = void \\(character\\*\\(\\*\\), integer\\(kind=\\d+\\)\\)"
+ "type = void \\(character\[^,\]+, $integer8\\)"
...
which fails to take into account that for gcc-7 and before, the type for
string length of a string argument is int, not size_t.
Fix this by allowing both $integer8 and $integer4.
Tested on x86_64-linux, with gcc-7 and gcc-10.
gdb/testsuite/ChangeLog:
2021-07-05 Tom de Vries <tdevries@suse.de>
* gdb.fortran/ptype-on-functions.exp: Allow both $integer8 and
$integer4 for size of string length.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9a22721..a6171ad 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-07-05 Tom de Vries <tdevries@suse.de> + + * gdb.fortran/ptype-on-functions.exp: Allow both $integer8 and + $integer4 for size of string length. + 2021-07-03 Joel Brobecker <brobecker@adacore.com> * gdb.base/default.exp: Change $_gdb_major to 12. |