From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 7CF7A385843E for ; Thu, 3 Aug 2023 01:12:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CF7A385843E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691025136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mFIYB0o0il8fbuaBKQjkctNsMa56mSwtWKiUbTrfi2M=; b=Gdl2CfgRP6CdZ0VuVs6+2AkX1wpBTJLCWA887vq/oyzMlE/fls4M7lQYR/hqkTgj4UEBFz SBeqFxaajnNwGKxQ5GKJGsB3oPt34CV3CH2B3n6Z3zfAAw8tcXiMoFMpSvXK7HAePymMnJ xZk6pmXZFOw6NgO8W9EOmL9+NeFwXiU= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-668-ODY3rgmSM4qG1GIvdyGLnQ-1; Wed, 02 Aug 2023 21:12:13 -0400 X-MC-Unique: ODY3rgmSM4qG1GIvdyGLnQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A9F3B1C03D95; Thu, 3 Aug 2023 01:12:12 +0000 (UTC) Received: from f38-1.lan (unknown [10.22.16.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC8362166B25; Thu, 3 Aug 2023 01:12:11 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: zhiyong.yan@windriver.com, simon.marchi@polymtl.ca, Kevin Buettner Subject: [PATCH 0/1] gdbserver: Reinstall software single-step breakpoints in resume_stopped_resumed_lwps Date: Wed, 2 Aug 2023 17:56:00 -0700 Message-ID: <20230803011146.2093194-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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: This patch fixes a problem with software single-stepping in gdbserver. See the 1/1 patch for the details. The fix proper is based on the work of Zhiyong Yan, who I've credited with a Co-Authored-By tag in the 1/1 patch. The test case was also partly Zhiyong's work since I adapted the C file from the reproducer in the bug that was filed for this problem. Zhiyong, please check to make sure that this revised change to gdbserver/linux-low.c still fixes the bug on your board. I've added Simon as a CC since the .exp file for the new test is based on gdb.threads/next-fork-other-thread.exp, which he authored. Also, from my reading of the commit log for that test, I gather that Simon has looked at a related problem in the past. Kevin Buettner (1): gdbserver: Reinstall software single-step breakpoints in resume_stopped_resumed_lwps .../gdb.threads/next-fork-exec-other-thread.c | 82 +++++++++++ .../next-fork-exec-other-thread.exp | 131 ++++++++++++++++++ gdbserver/linux-low.cc | 7 +- 3 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c create mode 100644 gdb/testsuite/gdb.threads/next-fork-exec-other-thread.exp -- 2.41.0