Page MenuHomeSolus

Enable python API for lldb
Closed, ResolvedPublic

Assigned To
None
Authored By
Degsky
Nov 25 2017, 8:32 PM
Referenced Files
F3640525: 0001-Fix-python-path-as-python-still-in-lib-directory.patch
Jul 10 2018, 2:21 AM
Tokens
"Like" token, awarded by pedrohjordao."Like" token, awarded by KyleCharters."Like" token, awarded by nathanielsimard.

Description

With 'python-lldb' you can use the debugger from python code.
https://lldb.llvm.org/python-reference.html
This is very interresting because you can e.g. use the vs-code extension 'vscode-lldb' to debug rust code (and of course a lot of other languages).
https://github.com/vadimcn/vscode-lldb/wiki/Installing-LLDB
I'am a little linux noob and was only able to find .deb or .rpm packages
https://packages.debian.org/sid/python-lldb-5.0
https://www.rpmfind.net/linux/rpm2html/search.php?query=python-lldb

Revisions and Commits

Event Timeline

DataDrake renamed this task from Request for package 'python-lldb' to Enable python API for lldb.Dec 16 2017, 10:35 PM
DataDrake added a subscriber: DataDrake.

To be clear: this isn't a separate package source. It is part of lldb and would either be shipped with it or as lldb-python

DataDrake triaged this task as Normal priority.Dec 16 2017, 10:36 PM
DataDrake edited projects, added Software; removed Package Requests.
DataDrake moved this task from Backlog to Improvement on the Software board.

For reference this is the error you get when enabling lldb python support. Should be an easy fix will try to get round to it finally.

CMake Error at tools/lldb/scripts/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/home/build/YPKG/root/llvm/build/llvm-6.0.1.src/sol-stage2/lib64/python2.7".
Call Stack (most recent call first):
  tools/lldb/cmake_install.cmake:51 (include)
  tools/cmake_install.cmake:50 (include)
  cmake_install.cmake:65 (include)

@joebonrichie try this one. You'll have to pushd into the lldb source dir to apply it and popd out.

Thanks @sunnyflunk, fixes the issue. This will be resolved finally when we update LLVM to 6.0.1 after sync.