X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=46ce2e98562a24cca3b63c460a935529a979de48;hb=6375df7c896a8a0e4be6959392848f28b021073c;hp=9f1d353ab2a568c14609c051133ebf87143e62ce;hpb=74555b2a9a524c568772bcea1332019a911bf86f;p=frida%2Ffrida.git diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 9f1d353..46ce2e9 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -55,6 +55,10 @@ Mainwindow::Mainwindow(InformationManager* mgr) setWindowTitle(tr("FRIDA")); mgr->connect_new_function_signal([&] (Function* fun) {addFunction(fun);}); + mgr->connect_new_dyn_symbol_signal([&] (const std::string& name) { + auto item = new QListWidgetItem(name.c_str(), listWidget); + item->setBackground(QBrush(QColor(0xff, 0xdd, 0xdd))); + }); } void Mainwindow::quit() @@ -137,8 +141,11 @@ namespace { block->getEndAddress(), [&](uint8_t* bytes, size_t byte_count, - const std::string& line) { - widget->addItem(bytes, byte_count, line.c_str() + 1); + const std::string& line, + const std::string& ref) { + widget->addItem(bytes, byte_count, + line.c_str() + 1, // remove \t + ref.c_str()); }); BasicBlockWidget *tmp, *nextl(NULL), *nextr(NULL);