From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by mx.groups.io with SMTP id smtpd.web09.847.1647894074411868328 for ; Mon, 21 Mar 2022 13:21:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=S+Qo3SXQ; spf=pass (domain: quicinc.com, ip: 199.106.114.39, mailfrom: quic_rcran@quicinc.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647894075; x=1679430075; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sXIMTuKDFeZ1rYLtCmcM3lQ9yR2Mit4lzBY9QlFuj0Q=; b=S+Qo3SXQacJatlXRNgoibPlFxgoUrOPwJDikVfkVbhUbFOsP+dyjyyDd e8xsWh6gBzSNO61ZLqmCvzPbdhAxz5S//S6tGrfTi1Y/Cl350Hr4c0CIi kTDoJJWeh9tTXn3AHOXiwveNdXh2QRTuJpZ6DTRAdOC9TPe9ZRkhGUX5I 4=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Mar 2022 13:21:15 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 13:21:15 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 21 Mar 2022 13:21:15 -0700 Received: from linbox.ba.nuviainc.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 21 Mar 2022 13:21:11 -0700 From: "Rebecca Cran" To: , Leif Lindholm , Michael D Kinney , Hao A Wu , Bob Feng , Liming Gao , Yuwei Chen CC: Rebecca Cran , Andrew Fish Subject: [PATCH v2 0/3] BaseTools: Add support for gdb and lldb Date: Mon, 21 Mar 2022 14:20:45 -0600 Message-ID: <20220321202048.13567-1-quic_rcran@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Return-Path: quic_rcran@quicinc.com X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Content-Transfer-Encoding: 8bit Content-Type: text/plain 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. Changes from v1 to v2: - Moved scripts from the root of the repo into BaseTools/Scripts. - Fixed typo of "RISCV" as "RISKV". Testing: - Tested gdb on Ubuntu and lldb on macOS for IA32 and X64. - Tested gdb on openSUSE for AARCH64. Rebecca Cran (3): BaseTools: efi_debugging.py: Add debugger agnostic dbg Python Classes BaseTools: Scripts/efi_gdb.py: Add gdb EFI commands and pretty Print BaseTools: Scripts/efi_lldb.py: Add lldb EFI commands and pretty Print BaseTools/Scripts/efi_debugging.py | 2185 ++++++++++++++++++++ BaseTools/Scripts/efi_gdb.py | 918 ++++++++ BaseTools/Scripts/efi_lldb.py | 1044 ++++++++++ 3 files changed, 4147 insertions(+) create mode 100755 BaseTools/Scripts/efi_debugging.py create mode 100755 BaseTools/Scripts/efi_gdb.py create mode 100755 BaseTools/Scripts/efi_lldb.py -- 2.34.1