From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by mx.groups.io with SMTP id smtpd.web08.14544.1628719961961121897 for ; Wed, 11 Aug 2021 15:12:42 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: nuviainc.com, ip: 209.85.166.199, mailfrom: rebecca@nuviainc.com) Received: by mail-il1-f199.google.com with SMTP id g9-20020a92cda90000b029020cc3319a86so2027251ild.18 for ; Wed, 11 Aug 2021 15:12:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1pSqr4yZFI5BKUI6mM9dvKeXHEJkEO9Vno7MzjUes54=; b=bOQ4Ip6ixXiEGiDnyUly4g41h/CufmphmJHX3RGgSNNGHaJB87GjGU7rRbEYuIaTkZ qs9M1F4GeGJREH4uY/C/zqtLtLdqGg0pYwDwOpa8aBGX6Y8MYhoCgZvJ9D8CDw+fZg2m jcxWQGreeggxffBd2j8pFn0pERuwrNFdaFdL6TCnjaNxX0xdhtBxEp8HVpuWn1oGZane seBV+NlkCLmA4P1aoWoEDfb+jQ5wRJS35cDVRCCNVINVxPkSKZoaWM2XhMyBmyz93b1I MIJM/yPHG7P23MqDo8VHGpHhJeDswIKhtLiJRWhJ1Zut+kIN4zZGKgiYdnZ1/gtd5SfL JmJg== X-Gm-Message-State: AOAM531QqR913nCC9CYWDLXM0ogetPfc+fc5KaT3A6wIpDOlnQQ1Ztep javevRSEmskvdDqYqfO6FkzH/VOOdgkWJMhPMsq8c0H+ut1sKJODesYYfDBnztcVappagt8fZd+ whIn5oeoqEzvl7ueuaCd/Aef2/f0LpnXqTN+R9CwS1svAvAmLtjjuvwAelUubkQ06xNIDgmmEp/ abHWO4VefGuLoU X-Google-Smtp-Source: ABdhPJzIcPhhMEvo/m3OSkvvWTnX750VALaogHg0bgaWkCSqy29mXqRApBljDHCRpHbxYfKGH3nSJrzJPH2z0v07VQAMz+7YVlKFzw== X-Received: by 2002:a05:6638:3382:: with SMTP id h2mr869378jav.77.1628719961274; Wed, 11 Aug 2021 15:12:41 -0700 (PDT) Return-Path: Received: from linbox.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id l15sm464896pjq.13.2021.08.11.15.11.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 15:12:00 -0700 (PDT) Subject: Re: [edk2-devel] [PATCH 0/3] Add support for gdb and lldb To: devel@edk2.groups.io, afish@apple.com References: From: "Rebecca Cran" Message-ID: <776e36f8-df13-8b9d-7c22-948f64af65d7@nuviainc.com> Date: Wed, 11 Aug 2021 16:11:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US I realized the Arm gcc 10.3 aarch64 download from https://developer.arm.com/tools-and-software/open-source-software/developer-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. I noticed a couple of issues though: in efi_debugging.py the Attributes text is partially underlined with the non-ASCII characters '——————' instead of '----------'.      Attributes      ——————----      _dict_ : dictionay There are also a couple of typos of 'dictionary': _dict_ : dictionay -- Rebecca Cran 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. > > 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. > > I've tested gdb on Ubuntu and lldb on macOS for IA32 and X64. > > 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 > > 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 >