From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp02.apple.com (ma1-aaemail-dr-lapp02.apple.com [17.171.2.68]) by mx.groups.io with SMTP id smtpd.web08.14941.1628459217912911857 for ; Sun, 08 Aug 2021 14:46:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=p2GFbuUs; spf=pass (domain: apple.com, ip: 17.171.2.68, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp02.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp02.apple.com (8.16.0.42/8.16.0.42) with SMTP id 178LhqKO046105 for ; Sun, 8 Aug 2021 14:46:57 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=20180706; bh=bLD1evKakLcRMfxi1k9z4F44Emo9rl25b0S2EW0TwvY=; b=p2GFbuUsynrSzlEK1qx4j0lib5OWEZkDjxGVvHPPdWcu7SwpTYKMMrB6c1CPsZ1HDkOE f2gyZR9byEeaGjpWpodQG+9HV7tdB37Uo+cMW+jhDMLkQq3UR6NZ/OLIoaqgTL46Lr4A k5/66ZkrMPM1OvqNAPAm30ZcsoAIIXMFTlXeyxNimqW+8buY7dZt1PpkuH/ndLf6RgEu DQRQ3aWw6WsdKNiv6QlKcof2k6hb0fpCTUppKYiP8TTnwxecit4Ls986LLGe1bOPuqJZ +6skH4igQg6ZOA6KhF3BeiEmwMnuzttuAJ9Bs/IRzjUjGsjHtoCZoyDC8mH5OlbrMtyT EA== Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by ma1-aaemail-dr-lapp02.apple.com with ESMTP id 3a9purqw6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 08 Aug 2021 14:46:57 -0700 Received: from rn-mailsvcp-relay-lapp02.rno.apple.com (rn-mailsvcp-relay-lapp02.rno.apple.com [17.179.253.11]) by rn-mailsvcp-mta-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) with ESMTPS id <0QXJ00SZ3J68NR00@rn-mailsvcp-mta-lapp02.rno.apple.com> for devel@edk2.groups.io; Sun, 08 Aug 2021 14:46:56 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-relay-lapp02.rno.apple.com by rn-mailsvcp-relay-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) id <0QXJ00M00ITNCS00@rn-mailsvcp-relay-lapp02.rno.apple.com>; Sun, 08 Aug 2021 14:46:56 -0700 (PDT) X-Va-A: X-Va-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-Va-E-CD: 0b147635b7f3adf036b9d32eb678b4f2 X-Va-R-CD: 8b5dc0598bbdc71036775b77d3566730 X-Va-CD: 0 X-Va-ID: c0fa7ce8-0e6c-4f8a-991c-77e235f2d3e6 X-V-A: X-V-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-V-E-CD: 0b147635b7f3adf036b9d32eb678b4f2 X-V-R-CD: 8b5dc0598bbdc71036775b77d3566730 X-V-CD: 0 X-V-ID: bdb10e2e-6d82-4d21-8c64-15eca158c707 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-08_07:2021-08-06,2021-08-08 signatures=0 Received: from rn-mailsvcp-relay-lapp01.rno.apple.com (unknown [17.235.59.204]) by rn-mailsvcp-relay-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.9.20210415 64bit (built Apr 15 2021)) with ESMTP id <0QXJ00EJXJ67C820@rn-mailsvcp-relay-lapp02.rno.apple.com>; Sun, 08 Aug 2021 14:46:56 -0700 (PDT) From: "Andrew Fish" To: devel@edk2.groups.io Cc: Andrew Fish Subject: [PATCH 0/3] Add support for gdb and lldb Date: Sun, 08 Aug 2021 14:46:31 -0700 Message-id: X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-08_07:2021-08-06,2021-08-08 signatures=0 Content-transfer-encoding: 8bit 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 -- 2.30.1 (Apple Git-130)