diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-01-04 21:42:31 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-01-04 21:42:31 +0000 |
commit | 20d1cfd71730e57efbe7171bbd9ab16124ec419a (patch) | |
tree | 413b83afecad42cee75603abb2397d9f025a4e42 /lldb/source/Plugins/Process/Linux/ProcessLinux.cpp | |
parent | 8c7795d26aadb0b2bb955e6c1868a8838907e1bb (diff) | |
download | bcm5719-llvm-20d1cfd71730e57efbe7171bbd9ab16124ec419a.tar.gz bcm5719-llvm-20d1cfd71730e57efbe7171bbd9ab16124ec419a.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/ProcessLinux.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/ProcessLinux.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp index 6d7b5cf0e14..acaff5081a8 100644 --- a/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp @@ -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() { |