[Lldb-commits] [lldb] r122838 - in /lldb/trunk/source/Plugins/Process/Linux: LinuxThread.cpp LinuxThread.h

Stephen Wilson wilsons at start.ca
Tue Jan 4 13:43:20 PST 2011


Author: wilsons
Date: Tue Jan  4 15:43:19 2011
New Revision: 122838

URL: http://llvm.org/viewvc/llvm-project?rev=122838&view=rev
Log:
Use default implementation of Thread::GetStackFrameCount and Thread::GetStackFrameAtIndex.


Modified:
    lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
    lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h

Modified: lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp?rev=122838&r1=122837&r2=122838&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp Tue Jan  4 15:43:19 2011
@@ -13,6 +13,7 @@
 // C++ Includes
 // Other libraries and framework includes
 #include "lldb/Target/Process.h"
+#include "lldb/Target/StopInfo.h"
 #include "lldb/Target/Target.h"
 
 #include "LinuxThread.h"
@@ -60,26 +61,6 @@
     return NULL;
 }
 
-uint32_t
-LinuxThread::GetStackFrameCount()
-{
-    return 0;
-}
-
-lldb::StackFrameSP
-LinuxThread::GetStackFrameAtIndex(uint32_t idx)
-{
-    if (idx == 0)
-    {
-        RegisterContextLinux *regs = GetRegisterContext();
-        StackFrame *frame = new StackFrame(
-            idx, *this, regs->GetFP(), regs->GetPC());
-        return lldb::StackFrameSP(frame);
-    }
-    else
-        return lldb::StackFrameSP();
-}
-
 RegisterContextLinux *
 LinuxThread::GetRegisterContext()
 {

Modified: lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h?rev=122838&r1=122837&r2=122838&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h (original)
+++ lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h Tue Jan  4 15:43:19 2011
@@ -38,12 +38,6 @@
     const char *
     GetInfo();
 
-    uint32_t
-    GetStackFrameCount();
-
-    lldb::StackFrameSP
-    GetStackFrameAtIndex(uint32_t idx);
-
     RegisterContextLinux *
     GetRegisterContext();
 





More information about the lldb-commits mailing list