diff options
| -rw-r--r-- | lldb/include/lldb/API/SBFrame.h | 3 | ||||
| -rw-r--r-- | lldb/source/API/SBFrame.cpp | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBFrame.h b/lldb/include/lldb/API/SBFrame.h index ce4a0f50053..aa2fad87cce 100644 --- a/lldb/include/lldb/API/SBFrame.h +++ b/lldb/include/lldb/API/SBFrame.h @@ -57,6 +57,9 @@ public: lldb::SBFunction GetFunction () const; + lldb::SBSymbol + GetSymbol () const; + // Gets the deepest block that contains the frame PC lldb::SBBlock GetBlock () const; diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index 6f74a735db3..425185488f9 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -99,6 +99,13 @@ SBFrame::GetFunction () const return sb_function; } +SBSymbol +SBFrame::GetSymbol () const +{ + SBSymbol sb_symbol(m_opaque_sp->GetSymbolContext (eSymbolContextSymbol).symbol); + return sb_symbol; +} + SBBlock SBFrame::GetBlock () const { |

