diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-22 22:01:35 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-22 22:01:35 +0000 |
commit | 36d7d91616c1f27ed7c734c4419aa76cd1c71e1a (patch) | |
tree | bf7c912a1bcc749b7f057ac3126076c2b00e4b05 /lldb/test/python_api/value/main.c | |
parent | c391a58b2bbbbe1bab184198ac0761bf7831ac14 (diff) | |
download | bcm5719-llvm-36d7d91616c1f27ed7c734c4419aa76cd1c71e1a.tar.gz bcm5719-llvm-36d7d91616c1f27ed7c734c4419aa76cd1c71e1a.zip |
Add an additional formatter class RecursiveDecentFormatter which prints the
value and the decendents. For an example,
rdf = lldbutil.RecursiveDecentFormatter(indent_child=2)
print rdf.format(g_table)
produces:
(const char **[2]) g_table = 0x00000001055a80f0 (location)
(const char **) [0] = 0x00000001055a8080
(const char *) *[0] = "Sunday"
(const char **) [1] = 0x00000001055a80c0
(const char *) *[1] = "Monday"
llvm-svn: 135815
Diffstat (limited to 'lldb/test/python_api/value/main.c')
-rw-r--r-- | lldb/test/python_api/value/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/python_api/value/main.c b/lldb/test/python_api/value/main.c index 108edfa8c8e..0554ff0284b 100644 --- a/lldb/test/python_api/value/main.c +++ b/lldb/test/python_api/value/main.c @@ -20,6 +20,14 @@ const char *days_of_week[7] = { "Sunday", "Friday", "Saturday" }; +const char *weekdays[5] = { "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" }; + +const char **g_table[2] = { days_of_week, weekdays }; + int main (int argc, char const *argv[]) { int i; |