Hi LLDB devs,<div><br></div><div>I'm working on porting LLDB to my own architecture.</div><div>I choose to use the target-definition-file(python) to let LLDB support my architecture based on my situation(already have a workable GDB-stub and the target is an embedded DSP). The usage:</div><div> (lldb) settings set plugin.process.gdb-remote.target-definition-file /path/to/xxxx_target_definition.py<br> (lldb) gdb-remote xxxx<br></div><div>So I think I <span class="op_dict3_font24 op_dict3_marginRight">definitely</span> need to rebuild LLDB with python support(cmake with -DLLDB_ENABLE_PYTHON=1 according to https://lldb.llvm.org/resources/build.html). But problem comes:</div><div>getting this error:</div><div>************************<br></div><div>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>Please set them or make sure they are set and tested correctly in the CMake files:<br>/export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline/libedit_INCLUDE_DIRS<br>   used as include directory in directory /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline<br>libedit_LIBRARIES (ADVANCED)<br>    linked by target "readline" in directory /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline<br></div><div>************************</div><div>This problem persists even after I add -DLLDB_ENABLE_LIBEDIT=0</div><div>My cmake version is 3.5.2, the LLDB/LLVM version I choose to work with is 7.0.1<br></div><div>My complete command is:</div><div>************************</div><div>cmake -G "Unix Makefiles" -DLLDB_ENABLE_LIBEDIT=0 -DLLDB_ENABLE_PYTHON=1 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib64/libpython2.7.so.1.0 -DLLVM_TARGETS_TO_BUILD=JiHai -DLLVM_ENABLE_PROJECTS='lldb' -DLLDB_EXPORT_ALL_SYMBOLS=1 -DCMAKE_BUILD    _TYPE=Debug -DCMAKE_INSTALL_PREFIX=. ../llvm</div><div>make -j 8<br></div><div>************************</div><div>Why the error persists even with -DLLDB_ENABLE_LIBEDIT=0? Does this mean that LLDB python support also need libedit? And what should I do to make LLDB_build_with_python correct(I just want to use the target-definition-file)?</div><div><br></div><div>Kind regards,</div><div>Rui</div><div><br></div>