public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* CLANGPDB binary debugging
@ 2020-03-20 15:13 Vitaly Cheptsov
  2020-03-20 19:14 ` [edk2-devel] " Andrew Fish
  0 siblings, 1 reply; 9+ messages in thread
From: Vitaly Cheptsov @ 2020-03-20 15:13 UTC (permalink / raw)
  To: Gao, Liming, devel; +Cc: Marvin Häuser


[-- Attachment #1.1: Type: text/plain, Size: 1167 bytes --]

Hello,

We noticed that the original bugzilla, which intended to add new LLVM toolchain support[1], also wanted to bring ELF format support with DWARF debugging information. For some reason this did not make its way into EDK II, and we are currently wondering, how can one debug binaries built with LLVM 9.0.

For macOS and XCODE5 toolchain we use GDB scripts based on Andrei Warkentin’s work, which allow us to integrate with QEMU and VMware[2]. It is likely that they should work with little to no work on Linux with CLANG38/GCC5 with GDB once again. However, CLANGPDB apparently is using PDB debugging information, which I believe is not handled with GDB.

Could you please provide the details on the matter and let us know about the recommended route?
— Is dropping CLANGELF just a temporary measure and it should be resubmitted again?
— Should LLDB, which seems to be aware of PDB, be used instead of GDB, when building with CLANGPDB? If so, did anybody try that?

Thanks!

Best regards,
Vitaly

[1] https://bugzilla.tianocore.org/show_bug.cgi?id=1603
[2] https://github.com/acidanthera/OpenCorePkg/blob/master/Debug/Scripts/gdb_uefi.py


[-- Attachment #1.2: Type: text/html, Size: 2743 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-25 13:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20 15:13 CLANGPDB binary debugging Vitaly Cheptsov
2020-03-20 19:14 ` [edk2-devel] " Andrew Fish
2020-03-21 10:28   ` Vitaly Cheptsov
2020-03-21 17:13     ` Andrew Fish
2020-03-21 18:36       ` Vitaly Cheptsov
2020-03-21 21:06         ` Andrew Fish
2020-03-23  9:10           ` Vitaly Cheptsov
2020-03-25 13:16             ` Liming Gao
2020-03-25 13:20               ` Vitaly Cheptsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox