emscripten-core / emscripten-core/emscripten

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

Open
#25,243 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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 (https://github.com/anutosh491/recipes/pull/12)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.