]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix overlapping CUs in gdb.dwarf2/dw2-entry-points.exp
authorTom de Vries <tdevries@suse.de>
Fri, 29 Aug 2025 15:31:58 +0000 (17:31 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 29 Aug 2025 15:31:58 +0000 (17:31 +0200)
commitfee7bd256f7dc7ad1076087280d63e993e390e86
tree20d0323f583e84175be2cd3ae4ec7414b2818813
parent7f15a94e6553deb8074b3aa1ed2d0157b00f7aec
[gdb/testsuite] Fix overlapping CUs in gdb.dwarf2/dw2-entry-points.exp

When running test-case gdb.dwarf2/dw2-entry-points.exp with target board
cc-with-gdb-index, I get:
...
(gdb) file dw2-entry-points^M
Reading symbols from dw2-entry-points...^M
warning: .gdb_index address table has a range (0x40066c - 0x4006e4) that \
  overlaps with an earlier range, ignoring .gdb_index^M
(gdb) delete breakpoints^M
...

Fix this by copying function bar_helper to barso_helper, and using it where
appropriate.

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
PR testsuite/33315
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33315
gdb/testsuite/gdb.dwarf2/dw2-entry-points.c
gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp