示例#1
0
    void parse() {
        optionalHeaderOffset_ = source_->pos() - sizeof(optionalHeader_.Magic);

        parseFileHeader();
        parseOptionalHeader();
        parseSections();
        parseSymbols();
        parseImports();
    }
示例#2
0
    void parse() {
        parseElfHeader();
        parseSections();
        parseSymbols();
        parseRelocations();

        foreach (auto &section, sections_) {
            image_->addSection(std::move(section));
        }
示例#3
0
    void parse() {
        optionalHeaderOffset_ = source_->pos() - sizeof(optionalHeader_.Magic);

        parseFileHeader();
        parseOptionalHeader();
        parseSections();
        parseSymbols();
        parseImports();
        parseExports();
        image_->setEntryPoint(optionalHeader_.ImageBase + optionalHeader_.AddressOfEntryPoint);
    }
示例#4
0
void KatePluginSymbolViewerView::slotEnableSorting()
{
 m_plugin->sortOn = !m_plugin->sortOn;
 m_sort->setChecked(m_plugin->sortOn);
 m_symbols->clear();
 if (m_plugin->sortOn == true)
     m_symbols->setSortingEnabled(true);
 else
     m_symbols->setSortingEnabled(false);

 parseSymbols();
 if (m_plugin->sortOn == true) m_symbols->sortItems(0, Qt::AscendingOrder);
}
示例#5
0
void KatePluginSymbolViewerView::slotRefreshSymbol()
{
  if (!m_symbols)
    return;
  
  // hack to get always apply sorting option to apply immediately
  if ((m_plugin->sortOn && !m_symbols->isSortingEnabled()) || (!m_plugin->sortOn && m_symbols->isSortingEnabled())) {
    m_plugin->sortOn = !m_plugin->sortOn;
    return slotEnableSorting();
  }
  
 m_symbols->clear();
 parseSymbols();
 updateCurrTreeItem();
}
示例#6
0
void KatePluginSymbolViewerView::slotChangeMode()
{
 m_plugin->treeOn = !m_plugin->treeOn;
 m_symbols->clear();
 parseSymbols();
}