Skip to content

Commit

Permalink
Make rust-lldb warn about unsupported versions of LLDB
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Jul 4, 2016
1 parent acfa113 commit 6be6289
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/etc/rust-lldb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
# Exit if anything fails
set -e

LLDB_VERSION=`lldb --version 2>/dev/null | head -1 | cut -d. -f1`

if [ "$LLDB_VERSION" = "lldb-350" ]
then
echo "***"
echo \
"WARNING: This version of LLDB has known issues with Rust and cannot \
display the contents of local variables!"
echo "***"
fi

# Create a tempfile containing the LLDB script we want to execute on startup
TMPFILE=`mktemp /tmp/rust-lldb-commands.XXXXXX`

Expand Down

0 comments on commit 6be6289

Please sign in to comment.