* Using debugger to debug UEFI application?
@ 2020-05-26 7:31 David F.
2020-05-27 0:00 ` [edk2-devel] " Guomin Jiang
0 siblings, 1 reply; 3+ messages in thread
From: David F. @ 2020-05-26 7:31 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
Hi,
I just found the Intel UDK debugger and hopping to use it to debug my UEFI application. Basically, the function ippsEncodeLZ77DynamicHuff_8u in Intel IPP 7 (tried 7.1 as well) used in my application will hang if secure boot is enabled on most systems (disabled runs fine - someone with vmware workstation 15 sees same thing as physical system - I can't enable vmware secure boot because not running system in UEFI mode) - the source is shared with dos/linux/windows and all those work fine. I'm not sure why it hangs in that case, exception? stack? nothing I tried to do like force the stack size helped.
So using this Lenovo laptop sitting next to me, can I use this Intel UDK debugger to connect via USB crossover cable and debug the application. I don't want to spend a bunch of time to only find out you can't do that and need special hardware. If not going to work then I'll have to spend time disassembling the application, injecting things in to the ippsEncodeLZ77DynamicHuff_8u to see what' up (a lot more work).
Anyone feel free to chime in on what you think may be causing a problem when secure boot is enabled?
TIA!!
[-- Attachment #2: Type: text/html, Size: 1224 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] Using debugger to debug UEFI application?
2020-05-26 7:31 Using debugger to debug UEFI application? David F.
@ 2020-05-27 0:00 ` Guomin Jiang
2020-05-27 0:25 ` Lee Fisher
0 siblings, 1 reply; 3+ messages in thread
From: Guomin Jiang @ 2020-05-27 0:00 UTC (permalink / raw)
To: devel@edk2.groups.io, df7729@gmail.com
[-- Attachment #1: Type: text/plain, Size: 1682 bytes --]
I will debug the UEFI application without Secure Boot in this case.
Any specific reason that force you debug in Secure Boot environment?
From you comment, it is need that figure out why hang in ippsEncodeLZ77DynamicHuff_8u function, I am sorry that I have no knowledge about the module and the function.
Best Regards
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of David F.
Sent: Tuesday, May 26, 2020 3:32 PM
To: devel@edk2.groups.io
Subject: [edk2-devel] Using debugger to debug UEFI application?
Hi,
I just found the Intel UDK debugger and hopping to use it to debug my UEFI application. Basically, the function ippsEncodeLZ77DynamicHuff_8u in Intel IPP 7 (tried 7.1 as well) used in my application will hang if secure boot is enabled on most systems (disabled runs fine - someone with vmware workstation 15 sees same thing as physical system - I can't enable vmware secure boot because not running system in UEFI mode) - the source is shared with dos/linux/windows and all those work fine. I'm not sure why it hangs in that case, exception? stack? nothing I tried to do like force the stack size helped.
So using this Lenovo laptop sitting next to me, can I use this Intel UDK debugger to connect via USB crossover cable and debug the application. I don't want to spend a bunch of time to only find out you can't do that and need special hardware. If not going to work then I'll have to spend time disassembling the application, injecting things in to the ippsEncodeLZ77DynamicHuff_8u to see what' up (a lot more work).
Anyone feel free to chime in on what you think may be causing a problem when secure boot is enabled?
TIA!!
[-- Attachment #2: Type: text/html, Size: 4409 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] Using debugger to debug UEFI application?
2020-05-27 0:00 ` [edk2-devel] " Guomin Jiang
@ 2020-05-27 0:25 ` Lee Fisher
0 siblings, 0 replies; 3+ messages in thread
From: Lee Fisher @ 2020-05-27 0:25 UTC (permalink / raw)
To: devel, guomin.jiang, df7729@gmail.com
> [...]I just found the Intel UDK debugger and hopping to use it [...]
I may be wrong, but I think Intel has put the Intel UDK debugger
solution as End-Of-Life. I'm not sure it's worth spending any time using
an end-of-life'd debugger solution. I think the main 2 alternatives to
the Intel UDK solution are: Intel System Studio (ISS), or Tianocore's
SourceLevelDebugPkg.
Over time, ISS has only been available if you registered, or not even as
freeware, so was only an option for some. But currently ISS is
freely-available without registration. ISS is not end-of-life, and I
presume they have a tech support team to help paying users with
questions, if that helps with your current situation.
There is at least one gdb-server project for UEFI outside the Intel UDK
solution and outside Tianocore:
https://github.com/night199uk/edk2-gdb-server
I think there is a second one, but I can't find it at the moment. I wish
Intel would open-source the Intel UDK debugger code, including it's
gdb-server, instead of just killing it off. Perhaps the Tiancore
community would make use of some of the code. Anything to improve UEFI
debugging is a worthy effort.
Servers aside, I really I wish there there was an lldb.efi and a gdb.efi...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-27 0:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-26 7:31 Using debugger to debug UEFI application? David F.
2020-05-27 0:00 ` [edk2-devel] " Guomin Jiang
2020-05-27 0:25 ` Lee Fisher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox