summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-10-26 09:06:38 +0000
committerZachary Turner <zturner@google.com>2018-10-26 09:06:38 +0000
commit9f727950a534d288e223fc82cb5fa73a30486ab1 (patch)
tree2470acc8386b4d07f87794a7f16abb9191f31f7a /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
parentb547ef2a29686b50707633c6525f2448b6ab6e48 (diff)
downloadbcm5719-llvm-9f727950a534d288e223fc82cb5fa73a30486ab1.tar.gz
bcm5719-llvm-9f727950a534d288e223fc82cb5fa73a30486ab1.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud