From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 8B8FA3858D28; Tue, 11 Oct 2022 16:11:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B8FA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665504717; bh=hTq3b0T/aHHGzosjQsX2fxp7jcYNawVGPU0Y3WHrWII=; h=From:To:Subject:Date:From; b=t5MINGvL4YgYQQ5jHpC8WZnZ0PpdP/ngWd3bfBT9wn1jovNDdHeGmXQcCv4/STbij lgDNijrjvGEsh1awcVN9pTzETtbKwEWCAWVyhs/ve+/9YWGMiW5Tt1cJSwQLSMdbrY iBkVDBpt76qWSTBImpEOZ+sUxEpIWo5wsVF6HSuw= 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.debuginfod/fetch_src_and_symbols.exp with native-gdbserver X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 12509439a1844a1f1095ac4e9d70b59b539e952c X-Git-Newrev: 343c2cbd8577101a8057d1459810ff983d07943c Message-Id: <20221011161157.8B8FA3858D28@sourceware.org> Date: Tue, 11 Oct 2022 16:11:57 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D343c2cbd8577= 101a8057d1459810ff983d07943c commit 343c2cbd8577101a8057d1459810ff983d07943c Author: Tom de Vries Date: Tue Oct 11 18:11:52 2022 +0200 [gdb/testsuite] Fix gdb.debuginfod/fetch_src_and_symbols.exp with nativ= e-gdbserver =20 When running test-case gdb.debuginfod/fetch_src_and_symbols.exp with ta= rget board native-gdbserver, I get: ... Running gdb.debuginfod/fetch_src_and_symbols.exp ... ERROR: tcl error sourcing gdb.debuginfod/fetch_src_and_symbols.exp. ERROR: gdbserver does not support start without extended-remote while executing "error "gdbserver does not support $command without extended-remote"" (procedure "gdb_test_multiple" line 51) invoked from within "gdb_test_multiple $command $message {*}$opts $user_code" (procedure "gdb_test" line 56) invoked from within "gdb_test "start" "Temporary breakpoint.*"" ... =20 Fix this by replacing gdb_test "start" with runto_main. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp b/gdb/t= estsuite/gdb.debuginfod/fetch_src_and_symbols.exp index d781d7a53c7..8bb9203686d 100644 --- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp +++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp @@ -158,7 +158,9 @@ proc_with_prefix no_url { } { # Generate a core file and test that GDB cannot find the # executable. clean_restart ${binfile}2 - gdb_test "start" "Temporary breakpoint.*" + if ![runto_main] { + return -1 + } gdb_test "generate-core-file $::corefile" "Saved corefile $::corefile"= \ "file [file tail $::corefile] gen" file rename -force ${binfile}2 $debugdir