hanchenye-llvm-project/lldb/source/API
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
..
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
SBAddress.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBBlock.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBBreakpoint.cpp Cleaned up the SWIG stuff so all includes happen as they should, no pulling 2010-10-07 04:19:01 +00:00
SBBreakpointLocation.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBBroadcaster.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
SBCommandInterpreter.cpp Remove unnecessary/inappropriate output-printing functions from 2010-09-15 18:29:06 +00:00
SBCommandReturnObject.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBCommunication.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
SBCompileUnit.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBDebugger.cpp Added a "--no-lldbinit" option (-n for short (which magically matches 2010-10-11 01:05:37 +00:00
SBError.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBEvent.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBFileSpec.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBFrame.cpp Fixed an expression parsing issue where if you were stopped somewhere without 2010-10-14 22:52:14 +00:00
SBFunction.cpp Cleaned up the SWIG stuff so all includes happen as they should, no pulling 2010-10-07 04:19:01 +00:00
SBHostOS.cpp
SBInputReader.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
SBInstruction.cpp Added the ability to get the disassembly instructions from the function and 2010-10-06 03:09:58 +00:00
SBInstructionList.cpp Added the ability to get the disassembly instructions from the function and 2010-10-06 03:09:58 +00:00
SBLineEntry.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBListener.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
SBModule.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBProcess.cpp Cleaned up the SWIG stuff so all includes happen as they should, no pulling 2010-10-07 04:19:01 +00:00
SBSourceManager.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
SBStream.cpp We now have SBStream that mirrors the generic stream classes we 2010-09-17 17:42:16 +00:00
SBStringList.cpp Fixed build error of LLDBWrapPython.cpp by removing the "protected" access modifier. 2010-09-17 18:39:57 +00:00
SBSymbol.cpp Added the ability to get the disassembly instructions from the function and 2010-10-06 03:09:58 +00:00
SBSymbolContext.cpp Remove all the __repr__ methods from the API/*.h files, and put them 2010-09-22 23:01:29 +00:00
SBSymbolContextList.cpp Added some missing API for address resolving within a module, and looking 2010-09-10 18:31:35 +00:00
SBTarget.cpp Fixed a launching issue. 2010-10-07 22:51:14 +00:00
SBThread.cpp Cleaned up the SWIG stuff so all includes happen as they should, no pulling 2010-10-07 04:19:01 +00:00
SBType.cpp Fixed an expression parsing issue where if you were stopped somewhere without 2010-10-14 22:52:14 +00:00
SBValue.cpp Expose the error contained within an SBValue. 2010-10-06 22:10:17 +00:00
SBValueList.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00