From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=15.233.44.27; helo=g2t2354.austin.hpe.com; envelope-from=thomas.palmer@hpe.com; receiver=edk2-devel@lists.01.org Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9C0862263DD73 for ; Mon, 16 Apr 2018 09:53:24 -0700 (PDT) Received: from G9W8456.americas.hpqcorp.net (g9w8456.houston.hp.com [16.216.161.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2354.austin.hpe.com (Postfix) with ESMTPS id 9DF62FA; Mon, 16 Apr 2018 16:53:22 +0000 (UTC) Received: from G4W9122.americas.hpqcorp.net (2002:10d2:1511::10d2:1511) by G9W8456.americas.hpqcorp.net (2002:10d8:a15f::10d8:a15f) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 16 Apr 2018 16:53:22 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9122.americas.hpqcorp.net (16.210.21.17) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Mon, 16 Apr 2018 16:53:22 +0000 Received: from TU4PR8401MB1086.NAMPRD84.PROD.OUTLOOK.COM (10.169.48.9) by TU4PR8401MB0911.NAMPRD84.PROD.OUTLOOK.COM (10.169.46.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Mon, 16 Apr 2018 16:53:20 +0000 Received: from TU4PR8401MB1086.NAMPRD84.PROD.OUTLOOK.COM ([fe80::2c7b:349e:b098:30e9]) by TU4PR8401MB1086.NAMPRD84.PROD.OUTLOOK.COM ([fe80::2c7b:349e:b098:30e9%17]) with mapi id 15.20.0675.015; Mon, 16 Apr 2018 16:53:20 +0000 From: "Palmer, Thomas" To: Laszlo Ersek , Johannes Swoboda CC: Michael Kinney , "edk2-devel@lists.01.org" , "clemens.hlauschek@inso.tuwien.ac.at" Thread-Topic: [edk2] Source code debugging of OVMF Thread-Index: AQHT1XNkPfbDbu6lxUS/EIXcRZtfzqQDkOeAgAAKcWA= Date: Mon, 16 Apr 2018 16:53:20 +0000 Message-ID: References: <12fe2332-c864-60e1-4f12-280e9939449f@redhat.com> In-Reply-To: <12fe2332-c864-60e1-4f12-280e9939449f@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=thomas.palmer@hpe.com; x-originating-ip: [15.211.195.15] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; TU4PR8401MB0911; 7:x52uhbE2JIWVU0VByLZlj/DPNZPTfeECfWKG2XJti7+02jM4apyFP6wzdCCem+6VHxx4p22l3NCUxqoeSxrVvZJr5Iacg/lDW0/9HLTDxqay8nng0oZamgBaAthYm8HOORXfXy9jodPnJZttPdDDuaqjOAZ98S7qJuOo4L8hk8vZKdH8D8eXtgwYInb5qkG1n/NTfWLsUc93ogaVObu/p1v8NbyK3ENWL/HGCWJbAF4Cq6ucuEi/aynPuClRZPuj x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(48565401081)(2017052603328)(7153060)(7193020); SRVR:TU4PR8401MB0911; x-ms-traffictypediagnostic: TU4PR8401MB0911: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(265634631926514)(162533806227266)(21532816269658)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:TU4PR8401MB0911; BCL:0; PCL:0; RULEID:; SRVR:TU4PR8401MB0911; x-forefront-prvs: 0644578634 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39380400002)(366004)(396003)(39860400002)(376002)(346002)(189003)(199004)(13464003)(478600001)(106356001)(966005)(99286004)(186003)(76176011)(7696005)(486006)(446003)(476003)(11346002)(3846002)(105586002)(6116002)(3660700001)(55016002)(6306002)(9686003)(53936002)(5250100002)(6246003)(316002)(305945005)(33656002)(2906002)(54906003)(68736007)(6436002)(74316002)(4326008)(5660300001)(25786009)(229853002)(7736002)(66066001)(3280700002)(14454004)(97736004)(8676002)(81156014)(81166006)(8936002)(2900100001)(6506007)(86362001)(1720100001)(53546011)(102836004)(26005)(110136005); DIR:OUT; SFP:1102; SCL:1; SRVR:TU4PR8401MB0911; H:TU4PR8401MB1086.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 22m8FaU9uNX4IxxhrO2iz4UxzcsPaoyGsPLtqcdvkZNaUNBp59+O9xxH2+iC+gW4KOsvvssJY8jqPBjneCc0lctBRFcZN+M9HRhOMJSO0gnkSOOPf9ToWWW70uejercYNw/6YHyWaj66zU21JtvAt+I/WI1cuCjW5TlrUIjr9HAtK9qCRFPzs4dFxyrMkcdY spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6f95faf2-ba73-4d35-664c-08d5a3ba8f73 X-MS-Exchange-CrossTenant-Network-Message-Id: 6f95faf2-ba73-4d35-664c-08d5a3ba8f73 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2018 16:53:20.8117 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TU4PR8401MB0911 X-OriginatorOrg: hpe.com Subject: Re: Source code debugging of OVMF X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2018 16:53:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I use Andrew WIP's stuff often as well. Just put the GdbSyms.inf in your D= SC (not FDF) and build. My .gdbinit script looks like this: set architecture i386:x86-64:intel target remote localhost:1234 source DebugPkg/Scripts/gdb_uefi.py reload-uefi -o Build/OvmfX64/DEBUG_GCC5/X64/DebugPkg/GdbSyms/GdbSyms/DEBUG/= GdbSyms.dll Andrew, I owe you a couple of beers if we ever meet. Regards, Thomas Palmer "I have only made this letter longer because I have not had the time to mak= e it shorter" - Blaise Pascal -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Lasz= lo Ersek Sent: Monday, April 16, 2018 11:14 AM To: Johannes Swoboda Cc: Michael Kinney ; edk2-devel@lists.01.org; c= lemens.hlauschek@inso.tuwien.ac.at Subject: Re: [edk2] Source code debugging of OVMF Hi Johannes, On 04/16/18 13:09, Johannes Swoboda wrote: > How are you ovmf developer debugging it? In general I add DEBUG statements, grep the tree for protocol / PPI GUIDs, = and use an editor with good ctags support. Here's another thread that you might find useful: http://edk2-devel.narkive.com/6BRVus92/qestion-about-how-to-debug-ovmf-on-q= emu Occasionally I do use gdb with QEMU, but the solution I use is not suitable= for debugging modules in the SEC and PEI phases, only in DXE. I have some = terribly rough patches in my local tree that are based on . I don't recall having any luck with SOURCE_DEBUG_ENABLE and the UDK debugge= r , but admittedly it's been a while (=3D years?) since I last tried to connect= debugger VM with debugge VM over a virtual serial port. Others have more r= ecently confirmed it works for them. I think Mike uses it successfully, fro= m a Windows debugger machine maybe? Thanks, Laszlo _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel