llvm-project/lldb/source
Aleksandr Urakov e0366d1db5 [PDB] Support PDB-backed expressions evaluation
Summary:
This patch contains several small fixes, which makes it possible to evaluate
expressions on Windows using information from PDB. The changes are:
- several sanitize checks;
- make IRExecutionUnit::MemoryManager::getSymbolAddress to not return a magic
  value on a failure, because callers wait 0 in this case;
- entry point required to be a file address, not RVA, in the ObjectFilePECOFF;
- do not crash on a debuggee second chance exception - it may be an expression
  evaluation crash;
- create parameter declarations for functions in AST to make it possible to call
  debugee functions from expressions;
- relax name searching rules for variables, functions, namespaces and types. Now
  it works just like in the DWARF plugin;
- fix endless recursion in SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc.

Reviewers: zturner, asmith, stella.stamenova

Reviewed By: stella.stamenova, asmith

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D53759

llvm-svn: 347962
2018-11-30 07:12:22 +00:00
..
API [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes 2018-11-28 22:01:52 +00:00
Breakpoint Add setting to require hardware breakpoints. 2018-11-15 01:18:15 +00:00
Commands [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes 2018-11-28 22:01:52 +00:00
Core [Symbol] Search symbols with name and type in a symbol file 2018-11-30 06:56:37 +00:00
DataFormatters Remove header grouping comments. 2018-11-11 23:17:06 +00:00
Expression [PDB] Support PDB-backed expressions evaluation 2018-11-30 07:12:22 +00:00
Host [CMake] Pass full libedit path to linker 2018-11-27 19:41:30 +00:00
Initialization [FileSystem] Extend file system and have it use the VFS. 2018-10-31 21:49:27 +00:00
Interpreter Add GDB remote packet reproducer. 2018-11-13 19:18:16 +00:00
Plugins [PDB] Support PDB-backed expressions evaluation 2018-11-30 07:12:22 +00:00
Symbol [Symbol] Search symbols with name and type in a symbol file 2018-11-30 06:56:37 +00:00
Target [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes 2018-11-28 22:01:52 +00:00
Utility [Reproducers] Improve reproducer API and add unit tests. 2018-11-27 22:11:02 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00