From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yIQUK1LV3WQLoAIAWB0awg (envelope-from ) for ; Thu, 17 Aug 2023 04:07:46 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=bQFzNBoL; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id ACF551E0C2; Thu, 17 Aug 2023 04:07:46 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9BBEC1E098 for ; Thu, 17 Aug 2023 04:07:44 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 24DF438708B4 for ; Thu, 17 Aug 2023 08:07:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24DF438708B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692259664; bh=+TMcxjk7I68uSK594P+y6bFYqDYeBOuHaL+hLJPoeU4=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=bQFzNBoLbhaFiCz+xfQYaO98yQiFyv+uWGAVsvsR0sCc0JetVPUMw2+p1BJQsu/Gl GaLZ1dgDsXihHQ1qhmZQ8kBIk09txnB87xCSVK01192rWx3j5PsrSOy5Dk1g8ktQSV 4EoXXw7jkgwOnExSKhReHuJB3JpU87To9AH0CKc0= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 29289385697F for ; Thu, 17 Aug 2023 08:07:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29289385697F Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5FCE921871; Thu, 17 Aug 2023 08:07:04 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 415481392B; Thu, 17 Aug 2023 08:07:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id V8i/DijV3WTUSgAAMHmgww (envelope-from ); Thu, 17 Aug 2023 08:07:04 +0000 Message-ID: Date: Thu, 17 Aug 2023 10:06:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv2 5/8] gdb: don't resume vfork parent while child is still running Content-Language: en-US To: Andrew Burgess , Simon Marchi , gdb-patches@sourceware.org Cc: tankut.baris.aktemur@intel.com References: <9b3303bed5b6afcbe2e11e65d9696e3b59a61826.1688484032.git.aburgess@redhat.com> <3e1e1db0-13d9-dd32-b4bb-051149ae6e76@simark.ca> <87v8ebf1pz.fsf@redhat.com> <878rabccge.fsf@redhat.com> <92a7f56d-901c-a4fb-d999-55b6b637ae6b@suse.de> <672165ac-d9d9-b50c-dbc4-8b3c5b04cef8@suse.de> In-Reply-To: <672165ac-d9d9-b50c-dbc4-8b3c5b04cef8@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 8/17/23 09:01, Tom de Vries via Gdb-patches wrote: > On 8/17/23 08:36, Tom de Vries wrote: >> On 8/16/23 16:02, Andrew Burgess via Gdb-patches wrote: >>> +set remote_exec_prog [gdb_remote_download target $binfile3] >> >> With testing on target board unix I ran into: >> ... >> ERROR: tcl error sourcing >> /data/vries/gdb/src/gdb/testsuite/gdb.base/vfork-follow-parent.exp. >> ERROR: error copying "vforked-prog": no such file or directory >>      while executing >> "file copy -force $fromfile $tofile" >>      (procedure "gdb_remote_download" line 29) >>      invoked from within >> "gdb_remote_download target $binfile3" >> ... >> >> I managed to reproduce it, also with the mentioned target boards >> native-gdbserver and native-extended-gdbserver. >> >> Did you mean something like: >> ... >> if {[is_remote host]} { >>      remote_upload target $binfile3 >> } >> ... >> ? >> > > Oops, of course that should be: > ... >  if {[is_remote target]} { >       remote_upload target $binfile3 > } > ... > I've got a patch that works, I'll commit shortly. FWIW, I got my uploads and download confused, I forgot dejagnu inverts the meaning of the concepts. Thanks, - Tom > Thanks, > - Tom > >> With that instead, I still see these FAILs with gdbserver boards: >> ... >> FAIL: gdb.base/vfork-follow-parent.exp: >> exec_file=vfork-follow-parent-exec: target-non-stop=off: non-stop=off: >> resolution_method=schedule-multiple: continue to end of inferior 2 >> FAIL: gdb.base/vfork-follow-parent.exp: >> exec_file=vfork-follow-parent-exec: target-non-stop=off: non-stop=off: >> resolution_method=schedule-multiple: continue to break_parent >> ... >> but not 100% reproducible. >> >> Thanks, >> - Tom >