From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id C3F7D385AC2F; Tue, 9 Aug 2022 13:12:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3F7D385AC2F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.dwarf2/debug-names.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 8cf61a33bba791c38e1b2f6cf2f276d052a1f17e X-Git-Newrev: a8a882968a6cd3bfe64d789b6e914521c74498c2 Message-Id: <20220809131208.C3F7D385AC2F@sourceware.org> Date: Tue, 9 Aug 2022 13:12:08 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 13:12:08 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da8a882968a6c= d3bfe64d789b6e914521c74498c2 commit a8a882968a6cd3bfe64d789b6e914521c74498c2 Author: Tom de Vries Date: Tue Aug 9 15:12:05 2022 +0200 [gdb/testsuite] Fix gdb.dwarf2/debug-names.exp =20 When running test-case gdb.dwarf2/debug-names.exp on openSUSE Tumblewee= d, I run into: ... (gdb) maint info symtabs^M ... ERROR: internal buffer is full. UNRESOLVED: gdb.dwarf2/debug-names.exp: break _start expanded symtab ... =20 Fix this by simplifying the test-case to print _start rather running to= it. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.dwarf2/debug-names.exp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/debug-names.exp b/gdb/testsuite/gdb.d= warf2/debug-names.exp index 0af5a93bea8..e625c1fbb7a 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names.exp +++ b/gdb/testsuite/gdb.dwarf2/debug-names.exp @@ -70,10 +70,7 @@ gdb_assert { [string equal $index "debug_names"] } ".deb= ug_names used" # Verify that initially no symtab is expanded. gdb_test_no_output "maint info symtabs" =20 -if ![runto _start] { - return -1 -} - -# Verify that breaking on _start actually expanded a symtab, rather than -# falling back on minimal symbols. -gdb_test "maint info symtabs" "name .*" "break _start expanded sy= mtab" +# Verify that _start is found in the debuginfo, rather than in the minimal +# symbols, which would result instead in: +# $1 =3D {} $hex <_start> +gdb_test "print _start" " =3D {void \\(\\)} $hex <_start>"