Skip to content

Commit 6be6289

Browse files
Make rust-lldb warn about unsupported versions of LLDB
1 parent acfa113 commit 6be6289

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/etc/rust-lldb

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
# Exit if anything fails
1313
set -e
1414

15+
LLDB_VERSION=`lldb --version 2>/dev/null | head -1 | cut -d. -f1`
16+
17+
if [ "$LLDB_VERSION" = "lldb-350" ]
18+
then
19+
echo "***"
20+
echo \
21+
"WARNING: This version of LLDB has known issues with Rust and cannot \
22+
display the contents of local variables!"
23+
echo "***"
24+
fi
25+
1526
# Create a tempfile containing the LLDB script we want to execute on startup
1627
TMPFILE=`mktemp /tmp/rust-lldb-commands.XXXXXX`
1728

0 commit comments

Comments
 (0)