[Lldb-commits] [PATCH 3/4] PlatformLinux::Attach and PlatformLinux::GetProcessInfo

Marco Minutoli mminutoli at gmail.com
Mon Apr 18 06:20:46 PDT 2011


The interface of GetProcessInfo has been changed and this fix it
accordingly.

This patch also add a "fake" implementation of the Attach method this
fix the build breakage due to its lack.
---
 source/Plugins/Platform/Linux/PlatformLinux.cpp |   15 ++++++++++++++-
 source/Plugins/Platform/Linux/PlatformLinux.h   |    9 ++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/source/Plugins/Platform/Linux/PlatformLinux.cpp b/source/Plugins/Platform/Linux/PlatformLinux.cpp
index 379a08e..5b3d591 100644
--- a/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -192,7 +192,8 @@ PlatformLinux::~PlatformLinux()
 }
 
 bool
-PlatformLinux::GetProcessInfo (lldb::pid_t pid, ProcessInfo &process_info)
+PlatformLinux::GetProcessInfo (lldb::pid_t pid,
+                               ProcessInstanceInfo &process_info)
 {
     return Host::GetProcessInfo (pid, process_info);
 }
@@ -247,3 +248,15 @@ PlatformLinux::GetSoftwareBreakpointTrapOpcode (Target &target,
     bp_site->SetTrapOpcode(opcode, opcode_size);
     return opcode_size;
 }
+
+lldb::ProcessSP
+PlatformLinux::Attach (lldb::pid_t pid, 
+                       Debugger &debugger,
+                       Target *target,
+                       Listener &listener,
+                       Error &error)
+{
+    ProcessSP processSP;
+    assert(!"Not implemented yet!");
+    return processSP;
+}
diff --git a/source/Plugins/Platform/Linux/PlatformLinux.h b/source/Plugins/Platform/Linux/PlatformLinux.h
index bb9f62c..c573b6c 100644
--- a/source/Plugins/Platform/Linux/PlatformLinux.h
+++ b/source/Plugins/Platform/Linux/PlatformLinux.h
@@ -85,7 +85,7 @@ namespace lldb_private {
                  const UUID* uuid, FileSpec &local_file);
 
         virtual bool
-        GetProcessInfo (lldb::pid_t pid, ProcessInfo &proc_info);
+        GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info);
 
         virtual bool
         GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch);
@@ -94,6 +94,13 @@ namespace lldb_private {
         GetSoftwareBreakpointTrapOpcode (Target &target, 
                                          BreakpointSite *bp_site);
 
+        virtual lldb::ProcessSP
+        Attach (lldb::pid_t pid, 
+                Debugger &debugger,
+                Target *target,
+                Listener &listener,
+                Error &error);
+
     protected:
         
         
-- 
1.7.1




More information about the lldb-commits mailing list