llvm-project/lldb/source/Symbol
Greg Clayton 8f92f0a35c Fixed an expression parsing issue where if you were stopped somewhere without
debug information and you evaluated an expression, a crash would occur as a
result of an unchecked pointer.

Added the ability to get the expression path for a ValueObject. For a rectangle
point child "x" the expression path would be something like: "rect.top_left.x".
This will allow GUI and command lines to get ahold of the expression path for
a value object without having to explicitly know about the hierarchy. This
means the ValueObject base class now has a "ValueObject *m_parent;" member.
All ValueObject subclasses now correctly track their lineage and are able
to provide value expression paths as well.

Added a new "--flat" option to the "frame variable" to allow for flat variable
output. An example of the current and new outputs:

(lldb) frame variable 
argc = 1
argv = 0x00007fff5fbffe80
pt = {
  x = 2
  y = 3
}
rect = {
  bottom_left = {
    x = 1
    y = 2
  }
  top_right = {
    x = 3
    y = 4
  }
}
(lldb) frame variable --flat 
argc = 1
argv = 0x00007fff5fbffe80
pt.x = 2
pt.y = 3
rect.bottom_left.x = 1
rect.bottom_left.y = 2
rect.top_right.x = 3
rect.top_right.y = 4


As you can see when there is a lot of hierarchy it can help flatten things out.
Also if you want to use a member in an expression, you can copy the text from
the "--flat" output and not have to piece it together manually. This can help
when you want to use parts of the STL in expressions:

(lldb) frame variable --flat
argc = 1
argv = 0x00007fff5fbffea8
hello_world._M_dataplus._M_p = 0x0000000000000000
(lldb) expr hello_world._M_dataplus._M_p[0] == '\0'

llvm-svn: 116532
2010-10-14 22:52:14 +00:00
..
Block.cpp Add GetDescription() and __repr__ () methods to most API classes, to allow 2010-09-20 05:20:02 +00:00
ClangASTContext.cpp Fixed an expression parsing issue where if you were stopped somewhere without 2010-10-14 22:52:14 +00:00
ClangASTType.cpp Fixed an issue where objc types weren't ever getting fully resolved (beyond 2010-10-11 02:25:34 +00:00
CompileUnit.cpp Looking at some of the test suite failures in DWARF in .o files with the 2010-09-14 02:20:48 +00:00
DWARFCallFrameInfo.cpp The first part of an lldb native stack unwinder. 2010-09-10 07:49:16 +00:00
Declaration.cpp Fixed a missing newline when dumping mixed disassembly. 2010-09-15 05:51:24 +00:00
FuncUnwinders.cpp The first part of an lldb native stack unwinder. 2010-09-10 07:49:16 +00:00
Function.cpp Cleaned up a unused member variable in Debugger. 2010-09-30 21:49:03 +00:00
LineEntry.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
LineTable.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
ObjectFile.cpp Change Target & Process so they can really be initialized with an invalid architecture. 2010-08-09 23:31:02 +00:00
Symbol.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
SymbolContext.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
SymbolFile.cpp Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
SymbolVendor.cpp Fixed the Objective C method prototypes to be correct (the selectors weren't 2010-10-12 02:24:53 +00:00
Symtab.cpp Added mutex protection to the Symtab class. 2010-10-08 04:20:14 +00:00
Type.cpp Fixed an expression parsing issue where if you were stopped somewhere without 2010-10-14 22:52:14 +00:00
TypeList.cpp Fixed an issue where if a method funciton was asked to be parsed before 2010-10-01 20:48:32 +00:00
UnwindPlan.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
UnwindTable.cpp Added motheds to C++ classes as we parse them to keep clang happy. 2010-09-23 01:09:21 +00:00
Variable.cpp Fixed C++ class clang type creation and display by making sure we omit 2010-10-13 03:15:28 +00:00
VariableList.cpp Added the ability to get error strings back from failed 2010-10-10 23:55:27 +00:00