Basic support for reading synthetic children by index:
 if your datatype provides synthetic children, "frame variable object[index]" should now do the right thing
 in cases where the above syntax would have been rejected before, i.e.
  object is not a pointer nor an array (frame variable ignores potential overload of [])
  object is a pointer to an Objective-C class (which cannot be dereferenced)
 expression will still run operator[] if available and complain if it cannot do so
 synthetic children by name do not work yet

llvm-svn: 137097
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index f1b126d..a5103b4 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -1035,7 +1035,8 @@
         frame->CalculateExecutionContext(exe_ctx);
         Error error;
         const uint32_t expr_path_options = StackFrame::eExpressionPathOptionCheckPtrVsMember |
-                                           StackFrame::eExpressionPathOptionsNoFragileObjcIvar;
+                                           StackFrame::eExpressionPathOptionsNoFragileObjcIvar |
+                                           StackFrame::eExpressionPathOptionsNoSyntheticChildren;
         lldb::VariableSP var_sp;
         result_valobj_sp = frame->GetValueForVariableExpressionPath (expr_cstr, 
                                                                      use_dynamic,