Re: [edk2-devel] CLANGPDB binary debugging

2020-03-21 Thread Andrew Fish via Groups.Io
> On Mar 21, 2020, at 11:36 AM, Vitaly Cheptsov wrote: > > Andrew, > > Thanks once again, but unfortunately it is not that simple. Below I answered > inline explaining the particular issues, which mostly seem to be specific to > CLANGPDB. LLVM stack emits PDB debug files, and even though LLD

Re: [edk2-devel] CLANGPDB binary debugging

2020-03-21 Thread Vitaly Cheptsov
21 марта 2020 г., в 20:13, Andrew Fish написал(а):On Mar 21, 2020, at 3:28 AM, Vitaly Cheptsov wrote:Hello,Andrey, thanks for the hint, it was very helpful. I rewrote the GDB scripts to work with LLDB[1] and was able to debug OVMF built with CLANGPDB. While it

Re: [edk2-devel] CLANGPDB binary debugging

2020-03-21 Thread Andrew Fish via Groups.Io
> On Mar 21, 2020, at 3:28 AM, Vitaly Cheptsov wrote: > > Hello, > > Andrey, thanks for the hint, it was very helpful. I rewrote the GDB scripts > to work with LLDB[1] and was able to debug OVMF built with CLANGPDB. While it > is still quite dirty, at the very least it works. > > Unfortunat

Re: [edk2-devel] CLANGPDB binary debugging

2020-03-21 Thread Vitaly Cheptsov
Hello, Andrey, thanks for the hint, it was very helpful. I rewrote the GDB scripts to work with LLDB[1] and was able to debug OVMF built with CLANGPDB. While it is still quite dirty, at the very least it works. Unfortunately the experience was close to terrible. I may certainly do something wr

Re: [edk2-devel] CLANGPDB binary debugging

2020-03-20 Thread Andrew Fish via Groups.Io
> On Mar 20, 2020, at 8:13 AM, Vitaly Cheptsov wrote: > > 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

[edk2-devel] CLANGPDB binary debugging

2020-03-20 Thread Vitaly Cheptsov
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 wi