about summary refs log tree commit diff
path: root/src/etc/rust-lldb
diff options
context:
space:
mode:
authorortem <ortem00@gmail.com>2020-08-28 09:29:45 +0300
committerortem <ortem00@gmail.com>2020-08-28 09:29:45 +0300
commit9cdcfe22887ae8df1e86c5dc7db908a50172118c (patch)
treee8431ca0aad445b780a359d49284f91db7d12104 /src/etc/rust-lldb
parent41aaa90c67cdb04cac7427756891ad04c3e0bebf (diff)
Fix loading pretty-printers in rust-lldb script
Diffstat (limited to 'src/etc/rust-lldb')
-rwxr-xr-xsrc/etc/rust-lldb5
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" "$@"