diff options
author | Greg Clayton <gclayton@apple.com> | 2012-03-27 21:10:07 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-03-27 21:10:07 +0000 |
commit | 741f3f9a5577ae5e8c2f594e1d5df70ac78092ce (patch) | |
tree | e0809897ef60ab37589c72526b9b6d2e6d7bc963 /lldb/source/Core/Section.cpp | |
parent | 52656d1047f53dd7018922793e132da87f7b52ff (diff) | |
download | bcm5719-llvm-741f3f9a5577ae5e8c2f594e1d5df70ac78092ce.tar.gz bcm5719-llvm-741f3f9a5577ae5e8c2f594e1d5df70ac78092ce.zip |
lldb_private::Section objects have a boolean flag that can be set that
indicates that the section is thread specific. Any functions the load a module
given a slide, will currently ignore any sections that are thread specific.
lldb_private::Section now has:
bool
Section::IsThreadSpecific () const
{
return m_thread_specific;
}
void
Section::SetIsThreadSpecific (bool b)
{
m_thread_specific = b;
}
The ELF plug-in has been modified to set this for the ".tdata" and the ".tbss"
sections.
Eventually we need to have each lldb_private::Thread subclass be able to
resolve a thread specific section, but for now they will just not resolve. The
code for that should be trivual to add, but the address resolving functions
will need to be changed to take a "ExecutionContext" object instead of just
a target so that thread specific sections can be resolved.
llvm-svn: 153537
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r-- | lldb/source/Core/Section.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp index f1f4dc11271..0c9f8ec398f 100644 --- a/lldb/source/Core/Section.cpp +++ b/lldb/source/Core/Section.cpp @@ -36,6 +36,8 @@ Section::Section (const ModuleSP &module_sp, m_file_size (file_size), m_children (), m_fake (false), + m_encrypted (false), + m_thread_specific (false), m_linked_section_wp(), m_linked_offset (0) { @@ -65,6 +67,8 @@ Section::Section (const lldb::SectionSP &parent_section_sp, m_file_size (file_size), m_children (), m_fake (false), + m_encrypted (false), + m_thread_specific (false), m_linked_section_wp(), m_linked_offset (0) { |