Make SBFrame::GetDescription a little more descriptive.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117497 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBFrame.cpp b/source/API/SBFrame.cpp
index 4190fd8..c0eb134 100644
--- a/source/API/SBFrame.cpp
+++ b/source/API/SBFrame.cpp
@@ -527,7 +527,11 @@
{
if (m_opaque_sp)
{
- description.Printf("SBFrame: idx = %u", m_opaque_sp->GetFrameIndex());
+ SBLineEntry line_entry = GetLineEntry ();
+ SBFileSpec file_spec = line_entry.GetFileSpec ();
+ uint32_t line = line_entry.GetLine ();
+ description.Printf("SBFrame: idx = %u ('%s', %s, line %d)", m_opaque_sp->GetFrameIndex(),
+ GetFunction().GetName(), file_spec.GetFilename(), line);
}
else
description.Printf ("No value");