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@apple.com>
llvm-svn: 131695
This commit is contained in:
Johnny Chen 2011-05-19 23:07:19 +00:00
parent d13581e492
commit c18a538646
3 changed files with 13 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -10,6 +10,8 @@
#include "ARM_DWARF_Registers.h"
#include <string.h>
#include <string.h>
using namespace lldb;
using namespace lldb_private;