[Lldb-commits] [PATCH 1/3] API fix and missing headers.

Marco Minutoli mminutoli at gmail.com
Thu May 19 14:41:30 PDT 2011


Host.cpp was missing Error.h and the implementation of
LaunchProcess. Once againg I have added a "fake" implementation
waiting for a real one.

Fixed the call GetAddressRange to reflect the new interface in
DynamicLoaderLinuxDYLD.cpp.

Added string.h to ARM_DWARF_Registers.cpp that is needed for ::memset.
---
 source/Host/linux/Host.cpp                         |   10 ++++++++++
 .../Linux-DYLD/DynamicLoaderLinuxDYLD.cpp          |    2 +-
 source/Utility/ARM_DWARF_Registers.cpp             |    2 ++
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/source/Host/linux/Host.cpp b/source/Host/linux/Host.cpp
index b0d43e8..4ebacc5 100644
--- a/source/Host/linux/Host.cpp
+++ b/source/Host/linux/Host.cpp
@@ -14,6 +14,7 @@
 // C++ Includes
 // Other libraries and framework includes
 // Project includes
+#include "lldb/Core/Error.h"
 #include "lldb/Host/Host.h"
 
 using namespace lldb;
@@ -33,3 +34,12 @@ Host::GetOSVersion(uint32_t &major,
     status = sscanf(un.release, "%u.%u.%u", &major, &minor, &update);
      return status == 3;
 }
+
+Error
+Host::LaunchProcess (ProcessLaunchInfo &launch_info)
+{
+    Error error;
+    assert(!"Not implemented yet!!!");
+    return error;
+}
+
diff --git a/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp b/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp
index 1eda619..898c36e 100644
--- a/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp
+++ b/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp
@@ -321,7 +321,7 @@ DynamicLoaderLinuxDYLD::GetStepThroughTrampolinePlan(Thread &thread, bool stop)
         AddressRange range;
         if (target_symbols.GetContextAtIndex(i, context))
         {
-            context.GetAddressRange(eSymbolContextEverything, range);
+            context.GetAddressRange(eSymbolContextEverything, 0, false, range);
             lldb::addr_t addr = range.GetBaseAddress().GetLoadAddress(&target);
             if (addr != LLDB_INVALID_ADDRESS)
                 addrs.push_back(addr);
diff --git a/source/Utility/ARM_DWARF_Registers.cpp b/source/Utility/ARM_DWARF_Registers.cpp
index b8737ae..5e59c33 100644
--- a/source/Utility/ARM_DWARF_Registers.cpp
+++ b/source/Utility/ARM_DWARF_Registers.cpp
@@ -10,6 +10,8 @@
 #include "ARM_DWARF_Registers.h"
 #include <string.h>
 
+#include <string.h>
+
 using namespace lldb;
 using namespace lldb_private;
 
-- 
1.7.3.4




More information about the lldb-commits mailing list