aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/structs.exp
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-12-02 10:28:40 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-12-02 11:54:51 -0500
commitd184a3c16a0f1c3c235713337ffb61b730e4a940 (patch)
tree4a2f02ad49403385b446723832ed21f3964fec15 /gdb/testsuite/gdb.base/structs.exp
parent9a73e1cafedc2e3a466b6193a460cb8062fa0a59 (diff)
downloadfsf-binutils-gdb-d184a3c16a0f1c3c235713337ffb61b730e4a940.zip
fsf-binutils-gdb-d184a3c16a0f1c3c235713337ffb61b730e4a940.tar.gz
fsf-binutils-gdb-d184a3c16a0f1c3c235713337ffb61b730e4a940.tar.bz2
gdb/testsuite: update tests looking for "DWARF 2" debug format
Commit ab557072b8ec ("gdb: use actual DWARF version in compunit's debugformat field") changes the debug format string in "info source" to show the actual DWARF version, rather than always show "DWARF 2". However, it failed to consider that some tests checked for the "DWARF 2" string to see if the test program is compiled with DWARF debug information. Since everything is compiled with DWARF 4 or 5 nowadays, that changed the behavior of those tests. Notably, it prevent the tests using skip_inline_var_tests to run. Grep through the testsuite for "DWARF 2" and change all occurrences I could find to use "DWARF [0-9]" instead (that string is passed to TCL's string match). Change-Id: Ic7fb0217fb9623880c6f155da6becba0f567a885
Diffstat (limited to 'gdb/testsuite/gdb.base/structs.exp')
-rw-r--r--gdb/testsuite/gdb.base/structs.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/structs.exp b/gdb/testsuite/gdb.base/structs.exp
index ae847f8..0e4a7ec 100644
--- a/gdb/testsuite/gdb.base/structs.exp
+++ b/gdb/testsuite/gdb.base/structs.exp
@@ -232,8 +232,8 @@ proc test_struct_calls { n } {
set tests "call $n ${testfile}"
# Call fun${n}, checking the printed return-value.
- setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455
- setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455
+ setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF \[0-9\]" i*86-*-* gdb/1455
+ setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF \[0-9\]" i*86-*-* gdb/1455
gdb_test "p/c fun${n}()" "[foo ${n}]" "p/c fun<n>(); ${tests}"
# Check that GDB can always pass a structure to an inferior function.
@@ -244,8 +244,8 @@ proc test_struct_calls { n } {
# examining that global to confirm that the value is as expected.
gdb_test_no_output "call Fun${n}(foo${n})" "call Fun<n>(foo<n>); ${tests}"
- setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455
- setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455
+ setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF \[0-9\]" i*86-*-* gdb/1455
+ setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF \[0-9\]" i*86-*-* gdb/1455
gdb_test "p/c L${n}" [foo ${n}] "p/c L<n>; ${tests}"
}