X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=70d31d509c33abf939ca44d9eef15f57eaebe7e5;hp=55bc86dd4fca2576bb9fa168ec82e2f8754f87c8;hb=083a8802e608a69d622ff5cda5d21ff61e289a85;hpb=e75c3d69cb2ebf78e156932deb136c0346b10234 diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 55bc86d..70d31d5 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -127,13 +127,18 @@ 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();