vendredi 24 mars 2017

How to Change LLDB Version CLion Uses?

TL;DR: I want to change the version of LLDB that CLion (v2016.3.5) uses to LLDB v3.8.1. Can I do this? If so, how?

Longer explanation of the question:

CLion is a C++ IDE that I've been using for a few years now. Recently, they released version 2016.3.X. When they went from 2016.2 to 2016.3, they changed the "built in lldb" version from v3.8.1 to v3.9.0. This has caused a problem for me as v3.9.0 doesn't seem to want to work correctly.

When I, say, "print some_var_name" (while at a break point) I get an error (below):

Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function getLVForDecl, file /Applications/buildAgent/work/92515a49514b3993/lldb/llvm/tools/clang/lib/AST/Decl.cpp, line 1360.

The source of this file can be found here: http://ift.tt/2nfD8xN

My options are

(1) Figure out why that error is happening. Creating a simple "hello world"program and debugging seems to work. This tells me that it has something to do with my code base, I suppose. But I have over 20,000 lines of code. So figuring out what's doing it would be extremely time consuming. LLDB version 3.8.1 seems like a faster/easier fix since it was doing me just fine in the past.

(2) Use an old version of CLion (which, by default, utilizes LLDB version 3.8.1)

(3) Get the new(er) version(s) of CLion to use LLDB version 3.8.1.

Thanks for any help/guidance.

Aucun commentaire:

Enregistrer un commentaire