[edk2-devel] [PATCH 0/3] Add support for gdb and lldb

Rebecca Cran rebecca at nuviainc.com
Fri Aug 13 05:09:27 UTC 2021


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



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#79243): https://edk2.groups.io/g/devel/message/79243
Mute This Topic: https://groups.io/mt/84756249/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list