-
Type:
Bug
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Development Platform
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
After the [toolchain v4 change|http://example.com] LLDB is no longer able to load symbols when building with regular scons settings, like:
./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --ninja generate-ninja ICECC=icecc CCACHE=ccache --dbg=off --opt=on --modules=""
This issue appears to be related to using higher DWARF than 32.
Current workaround is to explicitly pass "DWARF=32" flag to scons.
If direct fix is not feasible, we should consider the workaround more discoverable by engineers using LLDB, e.g.:
a) documenting it in offical mongo dev guide for LLDB setup
b) having a friendly flag to indicate that LLDB support is needed, like "LLDB_SUPPORT=on" or similar, that would be less likely to break and adapt to any workaround differences in the future toolchains.
We should also consider adding regression test for LLDB, that verifies sanity of the debugger.
For more details see discussion https://mongodb.slack.com/archives/CR8SNBY0N/p1671138402568879