llvm-project/lldb/source
Sam McCall 30621391bc Improve detection of global vs local variables
Summary:
Improve detection of global vs local variables.

Currently when a global variable is optimized out or otherwise has an unknown
location (DW_AT_location is empty) it gets reported as local.

I added two new heuristics:
 - if a mangled name is present, the variable is global (or static)
 - if DW_AT_location is present but invalid, the variable is global (or static)

Subscribers: lldb-commits

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

llvm-svn: 287636
2016-11-22 11:40:25 +00:00
..
API Change CreateTarget and dependents to accept StringRef. 2016-11-18 20:44:46 +00:00
Breakpoint Fix build failure on Linux and BSD by reverting r287597 2016-11-22 09:47:00 +00:00
Commands Fix build failure on Linux and BSD by reverting r287597 2016-11-22 09:47:00 +00:00
Core Re-add the StringRef interface changes for Variable. 2016-11-18 19:23:39 +00:00
DataFormatters Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
Expression [CMake] NFC. Updating CMake dependency specifications 2016-11-18 23:31:53 +00:00
Host Make GetRegisterByName() take a StringRef. 2016-11-17 21:54:37 +00:00
Initialization *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Interpreter Fix build failure on Linux and BSD by reverting r287597 2016-11-22 09:47:00 +00:00
Plugins Improve detection of global vs local variables 2016-11-22 11:40:25 +00:00
Symbol Fix some accidental Prints of StringRefs that snuck in. 2016-11-19 00:50:29 +00:00
Target Fix a bug caught by adding LLVM_NODISCARD to StringRef. 2016-11-21 23:18:13 +00:00
Utility Convert UriParser to use StringRef. 2016-11-17 01:38:02 +00:00
CMakeLists.txt [CMake] Fixing CMake to append source properties instead of overwrite them. 2016-11-10 23:56:32 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00