[Lldb-commits] [lldb] r117497 - /lldb/trunk/source/API/SBFrame.cpp

Caroline Tice ctice at apple.com
Wed Oct 27 15:07:28 PDT 2010


Author: ctice
Date: Wed Oct 27 17:07:28 2010
New Revision: 117497

URL: http://llvm.org/viewvc/llvm-project?rev=117497&view=rev
Log:
Make SBFrame::GetDescription a little more descriptive.


Modified:
    lldb/trunk/source/API/SBFrame.cpp

Modified: lldb/trunk/source/API/SBFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=117497&r1=117496&r2=117497&view=diff
==============================================================================
--- lldb/trunk/source/API/SBFrame.cpp (original)
+++ lldb/trunk/source/API/SBFrame.cpp Wed Oct 27 17:07:28 2010
@@ -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");





More information about the lldb-commits mailing list