diff options
Diffstat (limited to 'lldb/test/python_api/value')
| -rw-r--r-- | lldb/test/python_api/value/TestValueAPI.py | 6 | ||||
| -rw-r--r-- | lldb/test/python_api/value/main.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py index 1453af67854..f89ffbf58b2 100644 --- a/lldb/test/python_api/value/TestValueAPI.py +++ b/lldb/test/python_api/value/TestValueAPI.py @@ -66,6 +66,12 @@ class ValueAPITestCase(TestBase): self.assertTrue(days_of_week.GetNumChildren() == 7, VALID_VARIABLE) self.DebugSBValue(days_of_week) + fmt = lldbutil.BasicFormatter() + cvf = lldbutil.ChildVisitingFormatter(indent=2) + if self.TraceOn(): + print fmt.format(days_of_week) + print cvf.format(days_of_week) + # Get variable 'str_ptr'. value = frame0.FindVariable('str_ptr') self.assertTrue(value, VALID_VARIABLE) diff --git a/lldb/test/python_api/value/main.c b/lldb/test/python_api/value/main.c index 54d858033e3..108edfa8c8e 100644 --- a/lldb/test/python_api/value/main.c +++ b/lldb/test/python_api/value/main.c @@ -10,6 +10,8 @@ // This simple program is to test the lldb Python API SBValue.GetChildAtIndex(). +int g_my_int = 100; + const char *days_of_week[7] = { "Sunday", "Monday", "Tuesday", |

