aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
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/lib
parent9a73e1cafedc2e3a466b6193a460cb8062fa0a59 (diff)
downloadgdb-d184a3c16a0f1c3c235713337ffb61b730e4a940.zip
gdb-d184a3c16a0f1c3c235713337ffb61b730e4a940.tar.gz
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/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b145fe8..70fa2b3 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3683,8 +3683,8 @@ gdb_caching_proc skip_ifunc_tests {
# backtraces. Requires get_compiler_info and get_debug_format.
proc skip_inline_frame_tests {} {
- # GDB only recognizes inlining information in DWARF 2 (DWARF 3).
- if { ! [test_debug_format "DWARF 2"] } {
+ # GDB only recognizes inlining information in DWARF.
+ if { ! [test_debug_format "DWARF \[0-9\]"] } {
return 1
}
@@ -3702,8 +3702,8 @@ proc skip_inline_frame_tests {} {
# inlined functions. Requires get_compiler_info and get_debug_format.
proc skip_inline_var_tests {} {
- # GDB only recognizes inlining information in DWARF 2 (DWARF 3).
- if { ! [test_debug_format "DWARF 2"] } {
+ # GDB only recognizes inlining information in DWARF.
+ if { ! [test_debug_format "DWARF \[0-9\]"] } {
return 1
}