+void Mainwindow::save() {
+ QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), "", tr("Frida Archives (*.frida)"));
+ manager->save(filename);
+}
+
+void Mainwindow::switchMainPlaneToAddress(uint64_t address) {
+ if (objects_list_by_address.find(address) != objects_list_by_address.end()) {
+ LOG4CXX_DEBUG(logger, "Switching to function " << std::hex << address);
+ QListWidgetItem * item = objects_list_by_address[address];
+ listWidget->setCurrentItem(item);
+ stackedWidget->setCurrentWidget(objects_list[item]);
+ } else {
+ LOG4CXX_DEBUG(logger, "No function at " << std::hex << address
+ << " -- it's probably an imported Symbol");
+ }
+}
+