-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to do source level debug for EDK2 OVMF using qemu (Bugzilla Bug 3194) #78
Comments
Comment 14936Date: 2021-01-31 10:34:13 +0000
Hi, I can get the debug.log with the 'Loading' information and I set a breakpoint at I tried qemu form 4.1.0 to 5.2 version and edk2-stable202008. I can do all I had tried it for about one week, still cannot figure it out. add symbol table from file "Build/OvmfX64/DEBUG_GCC5/X64/VirtioGpuDxe.debug" at (gdb) b UefiMain (gdb) target remote :1234 The UefiMain breakpoint was never triggered. |
Comment 14956Date: 2021-02-02 07:30:03 +0000 Assigning to Laurie for triage / analysis -- I've never used the method described in the Wiki article. Currently the Wiki article has 4 commits, all from Laurie. Thanks! |
Comment 14967Date: 2021-02-02 21:49:53 +0000 Laurie: can you check it? |
Comment 14986Date: 2021-02-03 00:23:19 +0000 Stupid question as I'm mostly an lldb user... But you are getting an implied target from the add-symbol-file command and you set the breakpoint. After all this you tell gdb to create a new target via the So maybe doing the |
Comment 14988Date: 2021-02-03 00:40:43 +0000 Also I notice the instructions make the assumption that if you load an UEFI Shell application over and over it will load to the same address. I'm not sure how reliable that is especially if you over flow the firmwares original memory layout buckets. |
Comment 15002Date: 2021-02-03 11:47:04 +0000 The example from the wiki page is using Ubuntu 16.04. and on EDK II from 2018. I have not tried this example on a later Ubuntu with a later edk2. The Wiki example is using an Application loaded from the UEFI Shell not loading the shell again. So the breakpoint of UefiMain from the UEFI Shell application would not be executed again since the UEFI Shell is already loaded. Another example at this link: http://eszkadev.blogspot.com/2016/02/edkii-and-qemu-remote-debugging-with-gdb.html |
Comment 15027Date: 2021-02-05 23:37:28 +0000 (In reply to Andrew Fish from comment #3) I have also tried to do |
Comment 15028Date: 2021-02-05 23:39:03 +0000 (In reply to Andrew Fish from comment #3) I have also tried to do |
Comment 15029Date: 2021-02-05 23:48:04 +0000 (In reply to Laurie Jarlstrom from comment #5) Yes you are right。 I have tried from qemu-4.1.0 to qemu-5.2.0 and edk2-stable202008. |
Comment 15031Date: 2021-02-06 20:10:18 +0000 (In reply to Ying Fang from comment #7) Sorry I mean, it still can not hit the breakpoint given. |
Comment 15086Date: 2021-02-21 20:59:52 +0000 Any further progress about source level debug for EDK2 here ? |
Is there any update on this? |
This issue was created automatically with bugzilla2github
Bugzilla Bug 3194
Date: 2021-01-31T10:34:13+00:00
From: Ying Fang <>
To: @Laurie0131
CC: @ajfish, @lgao4
Last updated: 2021-07-27T05:05:30+00:00
The text was updated successfully, but these errors were encountered: