From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rn-mailsvcp-ppex-lapp15.apple.com (rn-mailsvcp-ppex-lapp15.apple.com [17.179.253.34]) by mx.groups.io with SMTP id smtpd.web09.15337.1628724162185198014 for ; Wed, 11 Aug 2021 16:22:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=YD+XR+lJ; spf=pass (domain: apple.com, ip: 17.179.253.34, mailfrom: afish@apple.com) Received: from pps.filterd (rn-mailsvcp-ppex-lapp15.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp15.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 17BNIYPX021576; Wed, 11 Aug 2021 16:22:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=l8nhW8MHzNT6YfAOW1vonzK0Yntacz2j6SX00mFnut8=; b=YD+XR+lJ29YOPp5gFwnPoeqDMNoMSx7gEj8nuNnS2+xstDEbj7Nsvxm/oXgG8BypF2oR vVozNpKHjAb7yyfEHetWNiZu04J20U0uPWGEV2+j5n1NE8daBC9poT6Oj1sBhCQ0kqbV FJrt2B+fWE3k0vmjrUzXtUSR9IwplIJA6aaoW1ZvVs71EGJDFfJaBqtjTgw70h+vTNbb mSrb32h0hCGm7PYvjbRFWOnLxVr2S5OCdWtGR3+XXqFMyjITTSARKIXKGFeTzI5iaxHv ojUptwHH/7gsBRbXlSCG26fIhWg8aRi/JZdPB40TEGPC5hWrR9wUgoDwieJuIwi/JXng gA== Received: from rn-mailsvcp-mta-lapp04.rno.apple.com (rn-mailsvcp-mta-lapp04.rno.apple.com [10.225.203.152]) by rn-mailsvcp-ppex-lapp15.rno.apple.com with ESMTP id 3a9qrb6quv-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 11 Aug 2021 16:22:41 -0700 Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) with ESMTPS id <0QXP00ZRM7LTOG10@rn-mailsvcp-mta-lapp04.rno.apple.com>; Wed, 11 Aug 2021 16:22:41 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) id <0QXP00E007ATFG00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Wed, 11 Aug 2021 16:22:41 -0700 (PDT) X-Va-A: X-Va-T-CD: c685ff643516248aa5c8a7c38121fdf1 X-Va-E-CD: ef376605ca1d8f7041e938a896e7b117 X-Va-R-CD: 134a5ce24489a32ea40a0524e3a94233 X-Va-CD: 0 X-Va-ID: ee9082db-cd46-4c97-92ee-45ab09d74e83 X-V-A: X-V-T-CD: c685ff643516248aa5c8a7c38121fdf1 X-V-E-CD: ef376605ca1d8f7041e938a896e7b117 X-V-R-CD: 134a5ce24489a32ea40a0524e3a94233 X-V-CD: 0 X-V-ID: 4a67df15-d267-43fe-a223-cb6b89e09234 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-11_08:2021-08-11,2021-08-11 signatures=0 Received: from [17.235.38.3] (unknown [17.235.38.3]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) with ESMTPSA id <0QXP00H8W7LRWE00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Wed, 11 Aug 2021 16:22:41 -0700 (PDT) MIME-version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.1\)) Subject: Re: [edk2-devel] [PATCH 0/3] Add support for gdb and lldb From: "Andrew Fish" In-reply-to: <776e36f8-df13-8b9d-7c22-948f64af65d7@nuviainc.com> Date: Wed, 11 Aug 2021 16:22:39 -0700 Cc: devel@edk2.groups.io Message-id: <3710C965-2995-44D4-AF85-CA554C25915A@apple.com> References: <776e36f8-df13-8b9d-7c22-948f64af65d7@nuviainc.com> To: Rebecca Cran X-Mailer: Apple Mail (2.3654.20.0.2.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-11_08:2021-08-11,2021-08-11 signatures=0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable > On Aug 11, 2021, at 3:11 PM, Rebecca Cran = wrote: >=20 > I realized the Arm gcc 10.3 aarch64 download from = https://developer.arm.com/tools-and-software/open-source-software/develope= r-tools/gnu-toolchain/gnu-a/downloads uses Python 2.7.18 and not Python = 3, so the f-Strings and likely more cause problems. I suspect at this = point there's little point putting effort into supporting Python 2. >=20 I=E2=80=99ve not tested on ARM yet, so please let me know if it works. = I=E2=80=99d like to avoid Python 2.7 support is possible given it is = passed its best by date.=20 >=20 > I noticed a couple of issues though: in efi_debugging.py the = Attributes text is partially underlined with the non-ASCII characters = '=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94' instead of = '----------'. >=20 Thanks did not notice that.=20 > Attributes > =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94---- > _dict_ : dictionay >=20 >=20 > There are also a couple of typos of 'dictionary': >=20 >=20 > _dict_ : dictionay >=20 Shoot though I fixed those=20 Thanks, Andrew Fish >=20 > --=20 > Rebecca Cran >=20 >=20 > On 8/8/21 3:46 PM, Andrew Fish via groups.io wrote: >> This patch set adds debugging support for gdb and lldb. >> It also adds generic debugging classes that use a file like object to >> make it easy to import into any debugger that supports Python. >>=20 >> Since these debugging scripts don't depend on any EFI code I was = thinking >> we could place them in the root of the repo to be easy to discover. >>=20 >> I've tested gdb on Ubuntu and lldb on macOS for IA32 and X64. >>=20 >> Andrew Fish (3): >> efi_debugging.py: - Add debugger agnostic debugging Python Classes >> efi_gdb.py: - Add gdb EFI commands and pretty Print >> efi_lldb.py: - Add lldb EFI commands and pretty Print >>=20 >> efi_debugging.py | 2187 = ++++++++++++++++++++++++++++++++++++++++++++++ >> efi_gdb.py | 918 +++++++++++++++++++ >> efi_lldb.py | 1044 ++++++++++++++++++++++ >> 3 files changed, 4149 insertions(+) >> create mode 100755 efi_debugging.py >> create mode 100755 efi_gdb.py >> create mode 100755 efi_lldb.py >>=20