diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-04-25 20:23:05 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-04-25 20:23:05 +0000 |
commit | fc87e2dd5c997060e4d82dd50f7a5e8ebd439998 (patch) | |
tree | 083066c2a809db19f9db30b30a4e6e940d0e96c8 /lldb/test/python_api/target/TestTargetAPI.py | |
parent | 743dda49d97245c7699ac5fc8e1fe583c69bf5cf (diff) | |
download | bcm5719-llvm-fc87e2dd5c997060e4d82dd50f7a5e8ebd439998.tar.gz bcm5719-llvm-fc87e2dd5c997060e4d82dd50f7a5e8ebd439998.zip |
Make SBBreakpointLocation::GetDescription() API to be consistent with SBTarget,
i.e., with 'SBStream &description' first, followed by 'DescriptionLevel level'.
Modify lldbutil.py so that get_description() for a target or breakpoint location
can just take the lldb object itself without specifying an option to mean option
lldb.eDescriptionLevelBrief. Modify TestTargetAPI.py to exercise this logic path.
llvm-svn: 130147
Diffstat (limited to 'lldb/test/python_api/target/TestTargetAPI.py')
-rw-r--r-- | lldb/test/python_api/target/TestTargetAPI.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py index a112de5de28..e72d2e70daa 100644 --- a/lldb/test/python_api/target/TestTargetAPI.py +++ b/lldb/test/python_api/target/TestTargetAPI.py @@ -67,7 +67,10 @@ class TargetAPITestCase(TestBase): self.assertTrue(target.IsValid(), VALID_TARGET) from lldbutil import get_description - desc = get_description(target, option=lldb.eDescriptionLevelBrief) + + # get_description() allows no option to mean lldb.eDescriptionLevelBrief. + desc = get_description(target) + #desc = get_description(target, option=lldb.eDescriptionLevelBrief) if not desc: self.fail("SBTarget.GetDescription() failed") self.expect(desc, exe=False, |