forked from OSchip/llvm-project
Do not load sections manually when launching a Linux process.
This code was a temporary workaround due to the lack of a dynamic loader plugin for the Linux platform that has bit rotted over time. Instead of replacing this hack with another a proper plugin will be developed instead. llvm-svn: 122837
This commit is contained in:
parent
8c7795d26a
commit
20d1cfd717
|
@ -127,12 +127,6 @@ ProcessLinux::DoLaunch(Module *module,
|
|||
return error;
|
||||
}
|
||||
|
||||
void
|
||||
ProcessLinux::DidLaunch()
|
||||
{
|
||||
UpdateLoadedSections();
|
||||
}
|
||||
|
||||
Error
|
||||
ProcessLinux::DoResume()
|
||||
{
|
||||
|
@ -404,27 +398,6 @@ ProcessLinux::EnablePluginLogging(Stream *strm, Args &command)
|
|||
//------------------------------------------------------------------------------
|
||||
// Utility functions.
|
||||
|
||||
void
|
||||
ProcessLinux::UpdateLoadedSections()
|
||||
{
|
||||
ObjectFile *obj_file = m_module->GetObjectFile();
|
||||
SectionList *sections = obj_file->GetSectionList();
|
||||
|
||||
// FIXME: SectionList provides iterator types, but no begin/end methods.
|
||||
size_t num_sections = sections->GetSize();
|
||||
for (unsigned i = 0; i < num_sections; ++i)
|
||||
{
|
||||
Section *section = sections->GetSectionAtIndex(i).get();
|
||||
|
||||
lldb::addr_t new_load_addr = section->GetFileAddress();
|
||||
lldb::addr_t old_load_addr = GetSectionLoadAddress(section);
|
||||
|
||||
if (old_load_addr == LLDB_INVALID_ADDRESS ||
|
||||
old_load_addr != new_load_addr)
|
||||
SectionLoaded(section, new_load_addr);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
ProcessLinux::HasExited()
|
||||
{
|
||||
|
|
|
@ -71,9 +71,6 @@ public:
|
|||
const char *stdout_path,
|
||||
const char *stderr_path);
|
||||
|
||||
virtual void
|
||||
DidLaunch();
|
||||
|
||||
virtual lldb_private::Error
|
||||
DoResume();
|
||||
|
||||
|
|
Loading…
Reference in New Issue