[Lldb-commits] [lldb] r119549 - in /lldb/trunk: include/lldb/Target/ThreadPlanTracer.h source/Target/ThreadPlanTracer.cpp

Jim Ingham jingham at apple.com
Wed Nov 17 12:19:50 PST 2010


Author: jingham
Date: Wed Nov 17 14:19:50 2010
New Revision: 119549

URL: http://llvm.org/viewvc/llvm-project?rev=119549&view=rev
Log:
Add a ThreadPlanAssemblyTracer that takes just a thread (since that's how we call it from ThreadPlanBase...)

Modified:
    lldb/trunk/include/lldb/Target/ThreadPlanTracer.h
    lldb/trunk/source/Target/ThreadPlanTracer.cpp

Modified: lldb/trunk/include/lldb/Target/ThreadPlanTracer.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/ThreadPlanTracer.h?rev=119549&r1=119548&r2=119549&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/ThreadPlanTracer.h (original)
+++ lldb/trunk/include/lldb/Target/ThreadPlanTracer.h Wed Nov 17 14:19:50 2010
@@ -104,11 +104,14 @@
 {
 public:
     ThreadPlanAssemblyTracer (Thread &thread, lldb::StreamSP &stream_sp);    
+    ThreadPlanAssemblyTracer (Thread &thread);    
     virtual ~ThreadPlanAssemblyTracer ();
     virtual void TracingStarted ();
     virtual void TracingEnded ();
     virtual void Log();
 private:
+    void InitializeTracer();
+    
     Process                &m_process;
     Target                 &m_target;
     Disassembler           *m_disassembler;

Modified: lldb/trunk/source/Target/ThreadPlanTracer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanTracer.cpp?rev=119549&r1=119548&r2=119549&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanTracer.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanTracer.cpp Wed Nov 17 14:19:50 2010
@@ -91,7 +91,21 @@
     m_process(thread.GetProcess()),
     m_target(thread.GetProcess().GetTarget())
 {
-    Process &process = thread.GetProcess();
+    InitializeTracer ();
+}
+
+ThreadPlanAssemblyTracer::ThreadPlanAssemblyTracer (Thread &thread) :
+    ThreadPlanTracer (thread),
+    m_process(thread.GetProcess()),
+    m_target(thread.GetProcess().GetTarget())
+{
+    InitializeTracer ();
+}
+
+void
+ThreadPlanAssemblyTracer::InitializeTracer()
+{
+    Process &process = m_thread.GetProcess();
     Target &target = process.GetTarget();
     
     ArchSpec arch(target.GetArchitecture());





More information about the lldb-commits mailing list