mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 00:46:45 +08:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user