From: Tom de Vries Date: Fri, 29 Aug 2025 15:31:58 +0000 (+0200) Subject: [gdb/testsuite] Fix overlapping CUs in gdb.dwarf2/dw2-linkage-name-trust.exp X-Git-Tag: gdb-17-branchpoint~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c2b3861935465b5e8b55765a442424a6d67643c;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix overlapping CUs in gdb.dwarf2/dw2-linkage-name-trust.exp When running test-case gdb.dwarf2/dw2-linkage-name-trust.exp with target board cc-with-gdb-index, I get: ... (gdb) file dw2-linkage-name-trust^M Reading symbols from dw2-linkage-name-trust...^M warning: .gdb_index address table has a range (0x4006ac - 0x4006cc) that \ overlaps with an earlier range, ignoring .gdb_index^M (gdb) delete breakpoints^M ... Fix this by compiling with nodebug. Tested on aarch64-linux. Approved-By: Tom Tromey PR testsuite/33315 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33315 --- diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp index 01eab48b8d4..7627e8e8873 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp @@ -27,7 +27,7 @@ standard_testfile .S set executable ${testfile} if {[prepare_for_testing_full "failed to prepare" \ - [list $testfile c++ $testfile-main.cc {c++ debug} \ + [list $testfile c++ $testfile-main.cc {c++ nodebug} \ $srcfile {}]]} { return -1 }