From 66b75430a93929d6fc6ed63db14ca28e3ad5b1f6 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 30 Dec 2015 11:55:28 +0000 Subject: Vendor import of stripped lldb trunk r256633: https://llvm.org/svn/llvm-project/lldb/trunk@256633 --- source/Plugins/ObjectFile/ELF/ObjectFileELF.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'source/Plugins/ObjectFile/ELF/ObjectFileELF.h') diff --git a/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/source/Plugins/ObjectFile/ELF/ObjectFileELF.h index 99088d1..4b97f92 100644 --- a/source/Plugins/ObjectFile/ELF/ObjectFileELF.h +++ b/source/Plugins/ObjectFile/ELF/ObjectFileELF.h @@ -10,9 +10,14 @@ #ifndef liblldb_ObjectFileELF_h_ #define liblldb_ObjectFileELF_h_ +// C Includes #include + +// C++ Includes #include +// Other libraries and framework includes +// Project includes #include "lldb/lldb-private.h" #include "lldb/Host/FileSpec.h" #include "lldb/Symbol/ObjectFile.h" @@ -47,6 +52,12 @@ struct ELFNote /// True if the ELFRel entry was successfully read and false otherwise. bool Parse(const lldb_private::DataExtractor &data, lldb::offset_t *offset); + + size_t + GetByteSize() const + { + return 12 + llvm::RoundUpToAlignment (n_namesz, 4) + llvm::RoundUpToAlignment (n_descsz, 4); + } }; //------------------------------------------------------------------------------ @@ -59,6 +70,8 @@ class ObjectFileELF : public lldb_private::ObjectFile { public: + ~ObjectFileELF() override; + //------------------------------------------------------------------ // Static Functions //------------------------------------------------------------------ @@ -113,9 +126,6 @@ public: //------------------------------------------------------------------ // ObjectFile Protocol. //------------------------------------------------------------------ - virtual - ~ObjectFileELF(); - bool ParseHeader() override; @@ -211,6 +221,7 @@ private: { lldb_private::ConstString section_name; }; + typedef std::vector SectionHeaderColl; typedef SectionHeaderColl::iterator SectionHeaderCollIter; typedef SectionHeaderColl::const_iterator SectionHeaderCollConstIter; @@ -428,4 +439,4 @@ private: RefineModuleDetailsFromNote (lldb_private::DataExtractor &data, lldb_private::ArchSpec &arch_spec, lldb_private::UUID &uuid); }; -#endif // #ifndef liblldb_ObjectFileELF_h_ +#endif // liblldb_ObjectFileELF_h_ -- cgit v1.1