From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by mx.groups.io with SMTP id smtpd.web11.33122.1628833308601538497 for ; Thu, 12 Aug 2021 22:41:48 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: nuviainc.com, ip: 209.85.166.198, mailfrom: rebecca@nuviainc.com) Received: by mail-il1-f198.google.com with SMTP id c16-20020a92cf500000b02902243aec7e27so1359998ilr.22 for ; Thu, 12 Aug 2021 22:41:48 -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:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tLWfapmTeDyErqaTgAwPL4aPDBp5f4ipJRutsUN4iRs=; b=NqtaSvm1ycqBj1vNdsiM8qHt4QyN3adUqEa8ozH5MKRL/tkcocBpa2xUMoC3Ltzcsb /rRDDJN1Y5MahxRltbfduuBQkY9W8heBqxFqgiaRwEdB8+iH/Q4nCWzHdDOEyBcEv9vg DMC8wrCft7LiZ5SisUltAvG0skazgx5hYAeft6IdyJ1IxT/Qx2iHWKI2Png1g44mS76W efEXzbYADurx1WO9wN0kvv0W92hqEKWzt+0xwJuED/4LP/MPHTmyei4dIPz4r8GJckIm pOMjEW88B5vnE5hHs8StQAaezcbnZo90eNQp/4bLbRAvilh/kUqp+8TL+w442f5WwOCC WFOw== X-Gm-Message-State: AOAM530n9X+bcgnnDWPAsyp9aGwuGMGswVRk/k936ghUrh6oOUbIUa4k DdcV2Az/E3eF2LBRTCKa/Kw2DWwlurzCMsG9IIV8T2YGutOr0px1TKeL6fKjmsQ5F5cHz6BgZzI MXL9o/VnXlaFvfMj5WyZ3vjp0aIrmZvVnspI= X-Google-Smtp-Source: ABdhPJybxCukxLAqqbrSKUCM1ib1oNI24ArfO4UhNRN9z2DQQ8o6GnOu/4LLn7hfr1L77mq9wlUZIIFOo7DCqOaMHgP86APO6AebSw== X-Received: by 2002:a05:6e02:1b88:: with SMTP id h8mr611332ili.98.1628833308018; Thu, 12 Aug 2021 22:41:48 -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 i18sm663050pgb.83.2021.08.12.22.09.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 22:09:29 -0700 (PDT) Subject: Re: [edk2-devel] [PATCH 0/3] Add support for gdb and lldb To: Andrew Fish Cc: devel@edk2.groups.io References: <776e36f8-df13-8b9d-7c22-948f64af65d7@nuviainc.com> <3710C965-2995-44D4-AF85-CA554C25915A@apple.com> <866F84D5-4129-4578-84EF-188A25592CCC@apple.com> From: "Rebecca Cran" Message-ID: Date: Thu, 12 Aug 2021 23:09:27 -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: <866F84D5-4129-4578-84EF-188A25592CCC@apple.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 8/12/21 4:56 PM, Andrew Fish wrote: > Can you try again? I think I fixed this? The `efi symbols` command is saving user context, so it can restore the context. If there is not a valid target it can fail. On X64 running OVMF 'source efi_gdb.py' lists lots of DLLs and finished with the backtrace. On AARCH64 running SBSA-REF, I get similar output except where the backtrace at the end of 'source efi_gdb.py' output should be I get the following output: AArch64`/home/bcran/src/upstream/uefi/Build/SbsaQemu/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe/DEBUG/UsbKbDxe.dll load = 0x101fb87d000 AArch64`/home/bcran/src/upstream/uefi/Build/SbsaQemu/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe/DEBUG/UsbMassStorageDxe.dll load = 0x101fb874000 AArch64`/home/bcran/src/upstream/uefi/Build/SbsaQemu/DEBUG_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll load = 0x101f851a000   is already loaded Traceback (most recent call last):   File "efi_gdb.py", line 828, in invoke     self.restore_user_state()   File "efi_gdb.py", line 711, in restore_user_state     self.user_selected_frame.select() gdb.error: Frame is invalid. However, I can run 'bt' and get what looks like a good stack trace. With the latest code on your private branch, I still see non-ASCII characters that look out of place. e.g. In efi_debugging.py line 627, "Attributes" is underlined with a mixture of hyphen types. -- Rebecca Cran