llvm-project/lldb/lit
Davide Italiano d5bbaa6688 [ExpressionParser] Fix crash when evaluating invalid expresssions.
Typical example, illformed comparisons (operator== where LHS and
RHS are not compatible). If a symbol matched `operator==` in any
of the object files lldb inserted a generic function declaration
in the ASTContext on which Sema operates. Maintaining the AST
context invariants is fairly tricky and sometimes resulted in
crashes inside clang (or assertions hit).

The real reason why this feature exists in the first place is
that of allowing users to do something like:
(lldb) call printf("patatino")

even if the debug informations for printf() is not available.
Eventually, we might reconsider this feature in its
entirety, but for now we can't remove it as it would break
a bunch of users. Instead, try to limit it to non-C++ symbols,
where getting the invariants right is hopefully easier.

Now you can't do in lldb anymore
(lldb) call _Zsomethingsomething(1,2,3)

but that doesn't seem to be such a big loss.

<rdar://problem/35645893>

llvm-svn: 327356
2018-03-13 01:40:00 +00:00
..
Breakpoint Re-add change for https://reviews.llvm.org/D42582 with added directories. 2018-03-12 21:17:04 +00:00
Expr [ExpressionParser] Fix crash when evaluating invalid expresssions. 2018-03-13 01:40:00 +00:00
Modules [elf] Remove one copy of the section merging code 2018-03-09 12:30:09 +00:00
SymbolFile/PDB [SymbolFilePDB] Add missing Char16 and Char32 types in a few places 2018-03-07 05:43:05 +00:00
Unit Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
CMakeLists.txt [lit] `llvm-mc` is now a dependency to run tests. 2018-03-12 23:42:37 +00:00
lit-lldb-init Introduce a setting to disable Spotlight while running the test suite 2018-03-12 20:52:36 +00:00
lit.cfg Re-add change for https://reviews.llvm.org/D42582 with added directories. 2018-03-12 21:17:04 +00:00
lit.site.cfg.in [lit] Update how clang and other binaries are found in per-configuration directories 2018-02-21 00:05:51 +00:00