Skip to content

Commit 05f75e9

Browse files
committedJun 25, 2015
Add const versions of SBFrame::GetFunctionName and SBFrame::IsInlined.
http://reviews.llvm.org/D10711 llvm-svn: 240660
1 parent 5fbe3cc commit 05f75e9

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed
 

‎lldb/include/lldb/API/SBFrame.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,18 @@ class LLDB_API SBFrame
9191
const char *
9292
GetFunctionName();
9393

94+
const char *
95+
GetFunctionName() const;
96+
9497
/// Return true if this frame represents an inlined function.
9598
///
9699
/// See also GetFunctionName().
97100
bool
98101
IsInlined();
99-
102+
103+
bool
104+
IsInlined() const;
105+
100106
/// The version that doesn't supply a 'use_dynamic' value will use the
101107
/// target's default.
102108
lldb::SBValue

‎lldb/scripts/interface/SBFrame.i

+7-1
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,20 @@ public:
128128
const char *
129129
GetFunctionName();
130130

131+
const char *
132+
GetFunctionName() const;
133+
131134
%feature("docstring", "
132135
/// Return true if this frame represents an inlined function.
133136
///
134137
/// See also GetFunctionName().
135138
") IsInlined;
136139
bool
137140
IsInlined();
138-
141+
142+
bool
143+
IsInlined() const;
144+
139145
%feature("docstring", "
140146
/// The version that doesn't supply a 'use_dynamic' value will use the
141147
/// target's default.

‎lldb/source/API/SBFrame.cpp

+12-1
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,12 @@ SBFrame::EvaluateExpression (const char *expr, const SBExpressionOptions &option
15001500

15011501
bool
15021502
SBFrame::IsInlined()
1503+
{
1504+
return static_cast<const SBFrame*>(this)->IsInlined();
1505+
}
1506+
1507+
bool
1508+
SBFrame::IsInlined() const
15031509
{
15041510
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
15051511
ExecutionContext exe_ctx(m_opaque_sp.get());
@@ -1537,6 +1543,12 @@ SBFrame::IsInlined()
15371543

15381544
const char *
15391545
SBFrame::GetFunctionName()
1546+
{
1547+
return static_cast<const SBFrame*>(this)->GetFunctionName();
1548+
}
1549+
1550+
const char *
1551+
SBFrame::GetFunctionName() const
15401552
{
15411553
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
15421554
const char *name = NULL;
@@ -1590,4 +1602,3 @@ SBFrame::GetFunctionName()
15901602
}
15911603
return name;
15921604
}
1593-

0 commit comments

Comments
 (0)
Please sign in to comment.