diff options
| author | ortem <ortem00@gmail.com> | 2020-08-28 09:29:45 +0300 |
|---|---|---|
| committer | ortem <ortem00@gmail.com> | 2020-08-28 09:29:45 +0300 |
| commit | 9cdcfe22887ae8df1e86c5dc7db908a50172118c (patch) | |
| tree | e8431ca0aad445b780a359d49284f91db7d12104 /src/etc/rust-lldb | |
| parent | 41aaa90c67cdb04cac7427756891ad04c3e0bebf (diff) | |
Fix loading pretty-printers in rust-lldb script
Diffstat (limited to 'src/etc/rust-lldb')
| -rwxr-xr-x | src/etc/rust-lldb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/etc/rust-lldb b/src/etc/rust-lldb index 28b32ef1ad5..bce72f1bad6 100755 --- a/src/etc/rust-lldb +++ b/src/etc/rust-lldb @@ -30,5 +30,8 @@ EOF fi fi +script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\"" +commands_file="$RUSTC_SYSROOT/lib/rustlib/etc/lldb_commands" + # Call LLDB with the commands added to the argument list -exec "$lldb" --source-before-file ./lldb_commands "$@" +exec "$lldb" --one-line-before-file "$script_import" --source-before-file "$commands_file" "$@" |
