LLDB __jit_debug_descriptor fails to bind to a valid JIT delivery tool because regressed code attempts to find a symbol of type Data which isn't implemented, Windows codepath.
Hence workaround of searching for symbol of type Any is provided to address regression & re-enable Windows based LLDB GDB/JIT development work.
A working example is available (wasmtime), which demonstrates this fix re-enabling GDB/JIT debugging of web assembly client code.
Note that module also had a minor regression (symbols not exported on Windows), so will require trunk of that tree as fix has just landed.
clang-format: please reformat the code
- m_jit_descriptor_addr = GetSymbolAddress( - module_list, ConstString("__jit_debug_descriptor"), -#ifdef _MSC_VER - // Windows implementation not indicating symbol is Data so we use Any as workaround for the time being. - eSymbolTypeAny); -#else - eSymbolTypeData); + m_jit_descriptor_addr = + GetSymbolAddress(module_list, ConstString("__jit_debug_descriptor"), +#ifdef _MSC_VER5 diff lines are omitted. See full path.