forked from qt-creator/qt-creator
debugger: reshuffle sections in module data
Keep track of elf section headers, add a dumper for Utils::ElfSection etc. Change-Id: I06d01c0de01ffc6b827a4a79bdc91fdb3e761d75 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -225,6 +225,13 @@ ElfReader::Result ElfReader::parse(const char *dataStart, quint64 fdlen,
|
||||
section.index = strtab.name;
|
||||
section.offset = strtab.offset;
|
||||
section.size = strtab.size;
|
||||
if (section.name == ".gdb_index")
|
||||
sections->symbolsType = FastSymbols;
|
||||
else if (section.name == ".debug_info")
|
||||
sections->symbolsType = PlainSymbols;
|
||||
else if (section.name == ".gnu_debuglink")
|
||||
sections->symbolsType = SeparateSymbols;
|
||||
sections->sections.append(section);
|
||||
}
|
||||
|
||||
s += e_shentsize;
|
||||
|
||||
Reference in New Issue
Block a user