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/source/API/SBBreakpointLocation.cpp | |
| 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/source/API/SBBreakpointLocation.cpp')
| -rw-r--r-- | lldb/source/API/SBBreakpointLocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp index 1e7738ced7b..9ab952261a6 100644 --- a/lldb/source/API/SBBreakpointLocation.cpp +++ b/lldb/source/API/SBBreakpointLocation.cpp @@ -40,7 +40,7 @@ SBBreakpointLocation::SBBreakpointLocation (const lldb::BreakpointLocationSP &br if (log) { SBStream sstr; - GetDescription (lldb::eDescriptionLevelBrief, sstr); + GetDescription (sstr, lldb::eDescriptionLevelBrief); log->Printf ("SBBreakpointLocation::SBBreakpointLocaiton (const lldb::BreakpointLocationsSP &break_loc_sp" "=%p) => this.sp = %p (%s)", break_loc_sp.get(), m_opaque_sp.get(), sstr.GetData()); } @@ -263,7 +263,7 @@ SBBreakpointLocation::SetLocation (const lldb::BreakpointLocationSP &break_loc_s } bool -SBBreakpointLocation::GetDescription (DescriptionLevel level, SBStream &description) +SBBreakpointLocation::GetDescription (SBStream &description, DescriptionLevel level) { if (m_opaque_sp) { |

