mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 10:37:44 +00:00
Fix lldb primer for Helix
This commit is contained in:
parent
3d7ea3babf
commit
0cce835037
1 changed files with 8 additions and 3 deletions
|
@ -119,7 +119,10 @@ in {
|
|||
|
||||
args.program = "{0}";
|
||||
args.initCommands = let
|
||||
primer = pkgs.writeTextDir "lldb_dap_rustc_primer.py" /* py */ ''
|
||||
primer = pkgs.runCommand "primer" {} (/* py */ ''
|
||||
mkdir $out
|
||||
echo '
|
||||
|
||||
import subprocess
|
||||
import pathlib
|
||||
import lldb
|
||||
|
@ -132,8 +135,10 @@ in {
|
|||
# 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'}" """)
|
||||
'';
|
||||
in [ "command script import ${primer}/lldb_dab_rustc_primer.py" ];
|
||||
|
||||
' > $out/primer.py
|
||||
'');
|
||||
in [ "command script import ${primer}/primer.py" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue