forked from OSchip/llvm-project
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:
parent
d13581e492
commit
c18a538646
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include "ARM_DWARF_Registers.h"
|
||||
#include <string.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
|
||||
|
|
Loading…
Reference in New Issue