[lldb-dev] Any plan to support to debug Webassembly file?

Raphael “Teemperor” Isemann via lldb-dev lldb-dev at lists.llvm.org
Mon Aug 26 04:03:51 PDT 2019


+lldb-dev

> On 26. Aug 2019, at 12:57, Raphael “Teemperor” Isemann <teemperor at gmail.com> wrote:
> 
> If I understand correctly your VM is your own custom wasm interpreter/JIT? If yes, then I don’t think it is realistic that LLDB can ever support it out of the box. But you can write a LLDB plugin that calls your own interpreter-implementations of functions such as stepping/continue/settings breakpoints, etc. Quick google search shows this example of doing the same for the Ruby interpreter that hopefully illustrates what I mean: https://christoph.luppri.ch/articles/ruby/debugging-ruby-programs-on-osx-with-lldb/ <https://christoph.luppri.ch/articles/ruby/debugging-ruby-programs-on-osx-with-lldb/>
> 
> - Raphael
> 
>> On 26. Aug 2019, at 12:37, Terry Guo <flameroc at gmail.com <mailto:flameroc at gmail.com>> wrote:
>> 
>> Hi Raphael,
>> 
>> Thanks. I mean the first case, attaching to my vm and then debugging via LLDB like setting breakpoint, single step or viewing the memory of wasm application.
>> 
>> BR,
>> Terry 
>> 
>> On Mon, Aug 26, 2019 at 5:59 PM Raphael “Teemperor” Isemann <teemperor at gmail.com <mailto:teemperor at gmail.com>> wrote:
>> I’m not sure I understand what the question is. Do you want that LLDB attachs to the wasm program running inside your VM and then debug the wasm program via LLDB? Or that LLDB can run the wasm module itself like an executable and then run it/step through it/inspect it/etc.?
>> 
>> Cheers,
>> - Raphael
>> 
>> > On 26. Aug 2019, at 11:47, Terry Guo via lldb-dev <lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>> wrote:
>> > 
>> > Hi there,
>> > 
>> > I am working on a project which involves compiling C++ source file to Webassembly byte code file with LLVM. The LLVM works well and can generate wasm byte code file with DWARF debug sections like .debug_line. I can run the generated wasm file with my wasm virtual machine. However I find LLDB doesn't support debugging wasm file. Do we have plan to enable LLDB debugging wasm file? Thanks for any information.
>> > 
>> > BR,
>> > Terry
>> > _______________________________________________
>> > lldb-dev mailing list
>> > lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>
>> > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev>
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190826/339b4e73/attachment.html>


More information about the lldb-dev mailing list