emscripten-core/emscripten

[Question] Does compiling lldb for wasm against emscripten make sense ?

Opened this issue · 1 comments

Hey @sbc100 ,

Would be great to know your views on the same.

Does compiling lldb against emscripten even make sense (from an execution point of view and not just compiling)?

So I might be able to compile lldb against emscripten but the OS-Specific Functionality ( launching or attaching to processes, setting breakpoints etc via ptrace or platform APIs) would be absent in a browser/WebAssembly environment I guess ?

So, many parts of LLDB can’t function normally is what I was thinking even if I build it correctly ?

Here's my attempt on emscripten-forge that was decently close (anutosh491/recipes#12)

Also here's some reference to a successful attempt : https://github.com/jawilk/lldb2wasm/?tab=readme-ov-file

Here's some discussion I initiated on lldb's discord for the same

https://discord.com/channels/636084430946959380/636732809708306432/1415222674761846844