Install codelldb

This commit is contained in:
2023-09-16 01:02:45 -04:00
parent 7d2d573b36
commit a18dc18856
5 changed files with 19 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
import subprocess
import pathlib
import lldb
# determine the sysroot for the active rust interpreter
rustlib_etc = pathlib.Path(subprocess.getoutput('rustc --print sysroot')) / 'lib' / 'rustlib' / 'etc'
if not rustlib_etc.exists():
raise RuntimeError('Unable to determine rustc sysroot')
# load lldb_lookup.py and execute lldb_commands with the correct path
lldb.debugger.HandleCommand(f"""command script import "{rustlib_etc / 'lldb_lookup.py'}" """)
lldb.debugger.HandleCommand(f"""command source -s 0 "{rustlib_etc / 'lldb_commands'}" """)