From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 1165D3858D38 for ; Thu, 17 Aug 2023 08:23:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1165D3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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-out2.suse.de (Postfix) with ESMTPS id 43B551F896; Thu, 17 Aug 2023 08:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692260599; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i8OcRH3RwT1s+m3B3UrJAJov9T3hnwd4eeRyid82yU4=; b=HQVVJNKIYsD6gSaRgzgbPxAI7sef0lSuPia04oJpglJ1Fd74F+QJ2iQZzrbHpJcvTO2p3P sGuuXvqrJn0jA9O+kT0cA58P1as3GzNa2tIFJLDvWy56LrdynDpmqTHP6iY+POnayCG1p6 iWr/Uuo63TsdMvagbyKcKCWnLaMSkWY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692260599; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i8OcRH3RwT1s+m3B3UrJAJov9T3hnwd4eeRyid82yU4=; b=jTN/d0zMNvqow2eAlskC2PT7V0NVl5Wy291MfPt61+psSb19yZ6m6nlqtoL0SyC6HcKLDP 6YeRcNrsHv2celCw== 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 2754B1392B; Thu, 17 Aug 2023 08:23:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0OF6CPfY3WRsUwAAMHmgww (envelope-from ); Thu, 17 Aug 2023 08:23:19 +0000 Message-ID: <9d5a640c-c93b-49e3-398e-44da9c456d36@suse.de> Date: Thu, 17 Aug 2023 10:22:55 +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> From: Tom de Vries In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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 List-Id: On 8/17/23 10:06, Tom de Vries via Gdb-patches wrote: > 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. > https://sourceware.org/pipermail/gdb-patches/2023-August/201694.html Thanks, - Tom > 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 >> >