X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=70d31d509c33abf939ca44d9eef15f57eaebe7e5;hp=754d5b2b0f1ab244b7932e77f571b14f1abc4d85;hb=083a8802e608a69d622ff5cda5d21ff61e289a85;hpb=26ff0a6f5b4ea19657f851a82a8d679f10d19edb diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 754d5b2..70d31d5 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -127,18 +127,23 @@ void Mainwindow::requestNewFunction() { NewFunctionDialog dialog; int result = dialog.exec(); if (QDialog::Accepted == result) { - LOG4CXX_DEBUG(logger, "requesting Function at " << std::hex << dialog.result()); - manager->getDisassembler()->disassembleFunctionAt(dialog.result()); + requestNewFunctionByAddress(dialog.result()); } else { LOG4CXX_DEBUG(logger, "requestNewFunction aborted"); } } +void Mainwindow::requestNewFunctionByAddress(uint64_t address) { + LOG4CXX_DEBUG(logger, "requesting Function at " << std::hex << address); + manager->getDisassembler()->disassembleFunctionAt(address); + switchMainPlaneToAddress(address); +} + void Mainwindow::renameFunction(QListWidgetItem * item) { RenameFunctionDialog dialog; int result = dialog.exec(); if (QDialog::Accepted == result) { - LOG4CXX_DEBUG(logger, "renaming Function" << item->text().toStdString() + LOG4CXX_DEBUG(logger, "renaming Function " << item->text().toStdString() << " to " << dialog.result().toStdString()); item->setText(dialog.result()); } else {