if [ ! -z "$CFG_GDB" ]
then
- # Extract the version
+ # Store GDB's version
CFG_GDB_VERSION=$($CFG_GDB --version 2>/dev/null | head -1)
putvar CFG_GDB_VERSION
fi
if [ ! -z "$CFG_LLDB" ]
then
+ # Store LLDB's version
+ CFG_LLDB_VERSION=$($CFG_LLDB --version 2>/dev/null | head -1)
+ putvar CFG_LLDB_VERSION
+
# If CFG_LLDB_PYTHON_DIR is not already set from the outside and valid, try to read it from
# LLDB via the -P commandline options.
if [ -z "$CFG_LLDB_PYTHON_DIR" ] || [ ! -d "$CFG_LLDB_PYTHON_DIR" ]