| Issue |
163799
|
| Summary |
Breakpoints regressed - Web assembly invoked from WASM C-API in a dynamic library (fix included)
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
adv-sw
|
What happened : Breakpoints stopped working, specific example here : https://advance-software.com/develop/#tutorial
Our app invokes Web Asssembly C-API from a plugin (DLL on Windows) - specifically wasmtime runtime.
I've debugged this & the fix is as follows - seems an overly aggressive optimization has been introduced that needs rolling back.
File: lldb\source\Plugins\JITLoader\GDB\JITLoaderGDB.cpp
a. In JITLoaderGDB::SetJITBreakpoint
Comment out :
//if (DidSetJITBreakpoint())
//return;
b. In JITLoaderGDB::ModulesDidLoad
Comment out :
//if (!DidSetJITBreakpoint() && m_process->IsAlive())
c. Build lldb as normal.
Breakpoints working again 🙂
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs