Do not display sections to-be loaded when loading ELF files
MODIFY
src/loaddialog.cpp
src/loaddialog.cpp
@@ -132,14 +132,6 @@ bool LoadDialog::validateBinaryFile(const QFile& file) {
void LoadDialog::setElfInfo(const ELFInfo& info) {
if (info.valid) {
m_ui->elfInfo->clear();
-
- QString text;
- text += "Sections to be loaded:<br/>";
- for (const auto& s : info.sectionInfo) {
- text += s + "<br/>";
- }
-
- m_ui->elfInfo->setText(text);
} else {
m_ui->elfInfo->setText("<b>Error:</b> " + info.errorMessage);
}
@@ -195,10 +187,7 @@ bool LoadDialog::validateELFFile(const QFile& file) {
goto finish;
}
- // All checks successfull. Generate string indicating which segments will be loaded.
- for (const auto& s : reader.sections) {
- info.sectionInfo.push_back(QString::fromStdString(s->get_name()) + ": " + s->get_address());
- }
+ // All checks successfull - ELF file is valid.
finish:
setElfInfo(info);

MODIFY
src/loaddialog.h
src/loaddialog.h
@@ -16,7 +16,6 @@ struct ELFInfo {
bool valid;
QString errorMessage;
QString entryPoint;
- std::vector<QString> sectionInfo;
};
namespace Ui {

Do not display sections to-be loaded when loading ELF files