I’ve been working with Linux and Swift and it occurs to me that I have two copies of LLDB on my Ubuntu system: lldb 4.0.1 installed from apt-get, and 4.0.0 from my /usr/local/swift/usr/bin directory. I have /usr/bin before the swift one, so if I do a ‘which lldb’, I get the apt-get installed one, but when I run the Swift REPL, it works correctly which I assume means it’s using the Swift-aware version of lldb in the swift/usr/bin directory.
I’m guessing that the Swift expects to find lldb (which is a symlink to lldb-4.0.0) in the same directory as the swift executable. As a test I changed the lldb symlink to the one in /usr/bin and got what I expected: “LLDB isn’t configured with REPL support for any languages.”
So a couple of questions arise from this:
- Am I correct in my understanding of how Swift and LLDB work together in an environment where another LLDB is installed?
Is there any plans to push these modifications upstream to the LLDB project (I didn’t find any mention of Swift in the LLDB SVN repo, but I may have not searched correctly…it’s been years since I used SVN).I was looking in the wrong place; it seems Swift support is in the latest Subversion code
Thanks for any info!