From nobody Tue Feb 10 22:18:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88672+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88672+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1649639843; cv=none; d=zohomail.com; s=zohoarc; b=E7PTO0tDB7jssmgvFh53VSj3wJ+3+mYoDWJaEXTpP8egF7/tslenZe9WbN1Vfmw8gI9RBLduzXLpQTqLiK5VAUikxp0t73V5t4Max6HxZIkBUDOJ6T1eBT8tBZLE4RE1zoY9rlbQMv/F6UKeSOsxTHJWRHhBKM9Z4P3Bwuq0vn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649639843; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=XvWJ3uBivrRIsN+NpQ6TKCOCAZlRn0AaxuFbJesIHrU=; b=IL9itCnb08hrABLU/INZtx22bD/ALqJMlJqmfaGMUJcZrGNOe7ezH+m2Tm2jjkePlSNxX2bZpt3L234ikHbYB0mhCfQ6QCkrgeQsAGPs3wUoTEcRUFOwTKWIdeG/f7i+F3WHue72kd4UB0lMVGf1Hnsi/V0OOimVva9dKjGuPe0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88672+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649639843749621.9706781132401; Sun, 10 Apr 2022 18:17:23 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 3c4lYY1788612xRoeUzL0Mqd; Sun, 10 Apr 2022 18:17:23 -0700 X-Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx.groups.io with SMTP id smtpd.web12.24375.1649639842668697714 for ; Sun, 10 Apr 2022 18:17:22 -0700 X-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 037F55C013A; Sun, 10 Apr 2022 21:17:22 -0400 (EDT) X-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 10 Apr 2022 21:17:22 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekhedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptfgvsggvtggtrgcuvehrrghnuceorhgvsggvtggtrgessghs ughiohdrtghomheqnecuggftrfgrthhtvghrnhepveeiffeivdevudetueehiedthedthe fhtdehfeelkeeitdfhhfefleetieehgfevnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprhgvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Apr 2022 21:17:21 -0400 (EDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH 2/3] ArmPlatformPkg: Fix target initialisation in cmd_load_symbols.py Date: Sun, 10 Apr 2022 19:16:58 -0600 Message-Id: <20220411011659.191390-3-rebecca@bsdio.com> In-Reply-To: <20220411011659.191390-1-rebecca@bsdio.com> References: <20220411011659.191390-1-rebecca@bsdio.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com X-Gm-Message-State: S8MaeqLKPNTqWjmDcwX0NsPyx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649639843; bh=urmc2PXWAK0cXt7vW3mrFbb7HRGYoz6D0NL9ilNR1Vw=; h=Cc:Date:From:Reply-To:Subject:To; b=eK31ZCdIimV4bg9vHvXgnDa3j1HYfwGhRlsVSqdRogZu+p1okCCviXw7jc28JZ9G0Z5 pSKE70+dgdAq1yPuti7Y/V2feqqtFP82ts7tOeHBQVVUmqrFzW+yD10IyfS0bRghXiQwT GMdQdmn+qRZ2Xfyhw+f+u/T5Xg17cVThhkA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649639844288100005 Content-Type: text/plain; charset="utf-8" The debugger in Arm Development Studio 2021.2 doesn't work with "ec =3D debugger.getExecutionContext(0)" because it's subsequently unable to access memory. Fix it by switching to "ec =3D debugger.getCurrentExecutionContext()". The documentation for waitForStop() says: "It is not needed after a call to stop() because stop() is blocking." So, remove the call to waitForStop. Signed-off-by: Rebecca Cran --- ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py b/ArmPlatformPk= g/Scripts/Ds5/cmd_load_symbols.py index 89d2f28ba27d..cb4db148dedf 100644 --- a/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py +++ b/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py @@ -85,11 +85,10 @@ else: debugger =3D Debugger() =20 # Initialisation commands -ec =3D debugger.getExecutionContext(0) +ec =3D debugger.getCurrentExecutionContext() ec.getExecutionService().stop() -ec.getExecutionService().waitForStop() # in case the execution context reference is out of date -ec =3D debugger.getExecutionContext(0) +ec =3D debugger.getCurrentExecutionContext() =20 try: armplatform_debugger =3D edk2_debugger.ArmPlatformDebugger(ec, report_= file, regions, verbose) --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88672): https://edk2.groups.io/g/devel/message/88672 Mute This Topic: https://groups.io/mt/90385957/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-