Add -gdb-set/-gdb-show expand-aggregates option (MI)
authorIlia K <ki.stfu@gmail.com>
Sat, 25 Apr 2015 20:10:02 +0000 (20:10 +0000)
committerIlia K <ki.stfu@gmail.com>
Sat, 25 Apr 2015 20:10:02 +0000 (20:10 +0000)
commit81bd06d787f9934f4ee8bd491b7ea389c9b05019
tree81bfede6fefab64949434c874ca4d1af69606f83
parentaa82b4af84fb361077d3a984c1808fe7908d5c1f
Add -gdb-set/-gdb-show expand-aggregates option (MI)

Use this option to expand complex types always:
```
-var-create var1 * complx
^done,name="var1",numchild="3",value="{...}",type="complex_type",thread-id="1",has_more="0"
-var-create var2 * complx_array
^done,name="var2",numchild="2",value="[2]",type="complex_type [2]",thread-id="1",has_more="0"
-gdb-set print expand-aggregates on
^done
-var-create var3 * complx
^done,name="var3",numchild="3",value="{i = 3, inner = {l = 3}, complex_ptr = 0x[0-9a-f]+}",type="complex_type",thread-id="1",has_more="0"
-var-create var4 * complx_array
^done,name="var4",numchild="2",value="{[0] = {i = 4, inner = {l = 4}, complex_ptr = 0x[0-9a-f]+}, [1] = {i = 5, inner = {l = 5}, complex_ptr = 0x[0-9a-f]+}}",type="complex_type [2]",thread-id="1",has_more="0"
```

llvm-svn: 235805
lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
lldb/test/tools/lldb-mi/variable/main.cpp
lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp
lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp
lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h
lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp