[Lldb-commits] [lldb] r131695 - in /lldb/trunk/source: Host/linux/Host.cpp Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp Utility/ARM_DWARF_Registers.cpp

Johnny Chen johnny.chen at apple.com
Thu May 19 16:07:19 PDT 2011


Author: johnny
Date: Thu May 19 18:07:19 2011
New Revision: 131695

URL: http://llvm.org/viewvc/llvm-project?rev=131695&view=rev
Log:
API fix and missing headers.

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.

Signed-off-by: Johnny Chen <johnny.chen at apple.com>

Modified:
    lldb/trunk/source/Host/linux/Host.cpp
    lldb/trunk/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp
    lldb/trunk/source/Utility/ARM_DWARF_Registers.cpp

Modified: lldb/trunk/source/Host/linux/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/linux/Host.cpp?rev=131695&r1=131694&r2=131695&view=diff
==============================================================================
--- lldb/trunk/source/Host/linux/Host.cpp (original)
+++ lldb/trunk/source/Host/linux/Host.cpp Thu May 19 18:07:19 2011
@@ -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 @@
     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;
+}
+

Modified: lldb/trunk/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp?rev=131695&r1=131694&r2=131695&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Linux-DYLD/DynamicLoaderLinuxDYLD.cpp Thu May 19 18:07:19 2011
@@ -321,7 +321,7 @@
         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);

Modified: lldb/trunk/source/Utility/ARM_DWARF_Registers.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/ARM_DWARF_Registers.cpp?rev=131695&r1=131694&r2=131695&view=diff
==============================================================================
--- lldb/trunk/source/Utility/ARM_DWARF_Registers.cpp (original)
+++ lldb/trunk/source/Utility/ARM_DWARF_Registers.cpp Thu May 19 18:07:19 2011
@@ -10,6 +10,8 @@
 #include "ARM_DWARF_Registers.h"
 #include <string.h>
 
+#include <string.h>
+
 using namespace lldb;
 using namespace lldb_private;
 





More information about the lldb-commits mailing list