Reputation: 393
I'm trying to debug an EFI application in qemu with gdb. QEMU is started with -s and -S flags and gdb is started with
gdb ./target/x86_64-unknown-uefi/debug/application.efi
and qemu is targeted with
target remote :1234
GDB resonds with Remote target doesn't support qGetTIBAddr packet
.
I verified that the efi file contains debug symbols. I can't find anything about this online so any help is appreciated.
Upvotes: 7
Views: 1112
Reputation: 31
I found the answer in a project on git: https://github.com/abaire/nxdk_pgraph_tests where it says in the README.md:
NOTE: If you see a failure due to "Remote target doesn't support qGetTIBAddr packet", check the GDB output to make sure that the .gdbinit file was successfully loaded.
This made me look into their .gdbinit file where the important line is: set osabi none
This is a command for gdb.
I assume you are trying to debug your efi file in a baremetal environment so setting this option to none makes sense. You can take a look at the selected osabi using show osabi
. For a default gdb setup with an efi file target the selected option is "auto" (currently "Windows")
Upvotes: 1