diff options
author | Shubham Sandeep Rastogi <srastogi22@apple.com> | 2024-11-18 11:08:18 -0800 |
---|---|---|
committer | Shubham Sandeep Rastogi <srastogi22@apple.com> | 2024-11-18 11:09:58 -0800 |
commit | f14e1a8597f83fa5bbc78befcb7059144d58ff5c (patch) | |
tree | 914b8cd383a2d1059723926557cce842c9622a28 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h | |
parent | 3b8606be547acbc7ae93d943645e6d6c83f66983 (diff) | |
download | llvm-f14e1a8597f83fa5bbc78befcb7059144d58ff5c.zip llvm-f14e1a8597f83fa5bbc78befcb7059144d58ff5c.tar.gz llvm-f14e1a8597f83fa5bbc78befcb7059144d58ff5c.tar.bz2 |
Revert "Add support for reading the dynamic symbol table from PT_DYNAMIC (#112596)"
This reverts commit a7b2e73bcaa91255a20f1f2e692bec9eb6c17022.
This patch broke the greendragon bot
Failed Tests (10):
lldb-api :: python_api/sbplatform/TestLocateModuleCallback.py
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleCallbackSuccessWithModuleAndSymbol
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleCallbackSuccessWithOnlySymbol
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleCallbackSuccessWithSymbolAsModule
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleCallbackSuccessWithSymbolAsModuleAndSymbol
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleCallbackSuccessWithSymbolByPlatformUUID
lldb-unit :: Target/./TargetTests/LocateModuleCallbackTest/GetOrCreateModuleWithCachedModuleAndSymbol
lldb-unit :: Target/./TargetTests/ModuleCacheTest/GetAndPut
lldb-unit :: Target/./TargetTests/ModuleCacheTest/GetAndPutStrangeHostname
lldb-unit :: Target/./TargetTests/ModuleCacheTest/GetAndPutUuidExists
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h index 16c216e..aba3a5bf 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h @@ -435,47 +435,6 @@ private: /// \return The bytes that represent the string table data or \c std::nullopt /// if an error occured. std::optional<lldb_private::DataExtractor> GetDynstrData(); - - /// Read the bytes pointed to by the \a dyn dynamic entry. - /// - /// ELFDynamic::d_ptr values contain file addresses if we load the ELF file - /// form a file on disk, or they contain load addresses if they were read - /// from memory. This function will correctly extract the data in both cases - /// if it is available. - /// - /// \param[in] dyn The dynamic entry to use to fetch the data from. - /// - /// \param[in] length The number of bytes to read. - /// - /// \param[in] offset The number of bytes to skip after the d_ptr value - /// before reading data. - /// - /// \return The bytes that represent the dynanic entries data or - /// \c std::nullopt if an error occured or the data is not available. - std::optional<lldb_private::DataExtractor> - ReadDataFromDynamic(const elf::ELFDynamic *dyn, uint64_t length, - uint64_t offset = 0); - - /// Get the bytes that represent the dynamic symbol table from the .dynamic - /// section from process memory. - /// - /// This functon uses the DT_SYMTAB value from the .dynamic section to read - /// the symbols table data from process memory. The number of symbols in the - /// symbol table is calculated by looking at the DT_HASH or DT_GNU_HASH - /// values as the symbol count isn't stored in the .dynamic section. - /// - /// \return The bytes that represent the symbol table data from the .dynamic - /// section or section headers or \c std::nullopt if an error - /// occured or if there is no dynamic symbol data available. - std::optional<lldb_private::DataExtractor> - GetDynsymDataFromDynamic(uint32_t &num_symbols); - - /// Get the number of symbols from the DT_HASH dynamic entry. - std::optional<uint32_t> GetNumSymbolsFromDynamicHash(); - - /// Get the number of symbols from the DT_GNU_HASH dynamic entry. - std::optional<uint32_t> GetNumSymbolsFromDynamicGnuHash(); - }; #endif // LLDB_SOURCE_PLUGINS_OBJECTFILE_ELF_OBJECTFILEELF_H |