llvm-project/lldb/lit
Zachary Turner 9f727950a5 [NativePDB] Add the ability to dump dump global variables.
LLDB has the ability to display global variables, even without a running
process, via the target variable command. This is because global
variables are linker initialized, so their values are embedded directly
into the executables. This gives us great power for testing native PDB
functionality in a cross-platform manner, because we don't actually need
a running process. We can just create a target using an EXE file, and
display global variables. And global variables can have arbitrarily
complex types, so in theory we can fully exercise the type system,
record layout, and data formatters for native PDB files and PE/COFF
executables on any host platform, as long as our type does not require a
dynamic initializer.

This patch adds basic support for finding variables by name, and adds an
exhaustive test for fundamental data types and pointers / references to
fundamental data types.

Subsequent patches will extend this to typedefs, classes, pointers to
functions, and other cases.

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

llvm-svn: 345373
2018-10-26 09:06:38 +00:00
..
Breakpoint Recommit r345127 "[LLDB] - Add support for DW_RLE_base_address and DW_RLE_offset_pair entries (.debug_rnglists)" 2018-10-25 10:25:45 +00:00
Expr TestMultilineExpr: validate evaluation for expressions that span multiple lines 2018-10-05 16:49:53 +00:00
Modules Upstreaming the BridgeOS device support and the 2018-10-11 00:28:35 +00:00
Quit Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
Settings Add functionality to export settings 2018-10-26 00:00:17 +00:00
Suite Fix a typo in mac SIP workaround 2018-08-31 06:01:02 +00:00
SymbolFile [NativePDB] Add the ability to dump dump global variables. 2018-10-26 09:06:38 +00:00
Unit Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
tools/lldb-mi [lldb-mi] Fix bugs in target-select-so-path.test 2018-09-25 21:49:33 +00:00
CMakeLists.txt Add dependency on llc required by find-variable-dwo test 2018-09-21 13:40:22 +00:00
lit-lldb-init Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings. 2018-10-05 16:49:47 +00:00
lit.cfg Resubmit "Add SymbolFileNativePDB plugin." 2018-10-12 19:47:13 +00:00
lit.site.cfg.in lldb-test symbols: Add ability to do name-based lookup 2018-05-03 10:57:16 +00:00