]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix require dwarf2_support check in some test-cases, some more
authorTom de Vries <tdevries@suse.de>
Thu, 28 Aug 2025 09:24:42 +0000 (11:24 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 28 Aug 2025 09:24:42 +0000 (11:24 +0200)
commite9303c4337161daf7f487daeb88488d3d5fbe129
tree49f931a655bd17b8bfce407effe8f21491daa8af
parentf83ec9ae4a854cc9ba453e88cc7621de5a7a5091
[gdb/testsuite] Fix require dwarf2_support check in some test-cases, some more

The Linaro CI reported a regression in test-case
gdb.dwarf2/macro-source-path-clang14-dw4.exp due to recent commit 81e5a23c7b8
("[gdb/testsuite] Fix require dwarf2_support check in some test-cases").

The problem is that the "require dwarf2_support" in its new location doesn't
work because proc dwarf2_support is not defined.

I didn't notice this because I tested all gdb.dwarf2 test-cases together, and
a different test-case had already imported the proc.

Fix this by moving load_lib dwarf.exp earlier.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/macro-source-path-clang14-dw4.exp
gdb/testsuite/gdb.dwarf2/macro-source-path-clang14-dw5.exp
gdb/testsuite/gdb.dwarf2/macro-source-path-gcc11-ld234-dw5.exp
gdb/testsuite/gdb.dwarf2/macro-source-path-gcc11-ld238-dw4.exp
gdb/testsuite/gdb.dwarf2/macro-source-path-gcc11-ld238-dw5.exp
gdb/testsuite/gdb.dwarf2/macro-source-path.exp.tcl