[Lldb-commits] [lldb] [lldb][AIX] Added 32-bit XCOFF Executable support (PR #139875)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri May 16 01:48:28 PDT 2025
================
@@ -191,20 +193,36 @@ void ObjectFileXCOFF::ParseSymtab(Symtab &lldb_symtab) {}
bool ObjectFileXCOFF::IsStripped() { return false; }
void ObjectFileXCOFF::CreateSections(SectionList &unified_section_list) {
+
if (m_sections_up)
return;
m_sections_up = std::make_unique<SectionList>();
- ModuleSP module_sp(GetModule());
+ if (m_binary->is64Bit())
+ CreateSectionsWithBitness<XCOFF64>(unified_section_list);
+ else
+ CreateSectionsWithBitness<XCOFF32>(unified_section_list);
+}
+template <typename T> auto GetSections(llvm::object::XCOFFObjectFile *binary) {
----------------
labath wrote:
```suggestion
template <typename T> static auto GetSections(llvm::object::XCOFFObjectFile *binary) {
```
https://github.com/llvm/llvm-project/pull/139875
More information about the lldb-commits
mailing list