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:
hjk
2012-06-04 18:06:59 +02:00
committed by hjk
parent 1b1dbf1b8b
commit a7f8c3c827
7 changed files with 67 additions and 77 deletions

View File

@@ -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;