Skip to content

Commit

Permalink
Inform about cutter bundled rizin
Browse files Browse the repository at this point in the history
  • Loading branch information
brightprogrammer committed Feb 22, 2025
1 parent ade71cc commit 5cdd317
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ by current user (the user launching the plugin), or there exist environment
varibles `$TMPDIR` or `$TMP` and those are writable as well.
So it should be either `$PWD` or `$TMP` or `$TMPDIR`.

If you cannot see dialogs or messages when intercting with plugin in cutter UI,
make sure that you have a cutter installation with bundled rizin. If your cutter
installation uses pre-installed rizin, then the way the plugin is written, you'll
end up using rizin's command line plugin through the cutter UI, and will only be
able to see output through the command line. Cutter with bundled rizin is very
important!

If rizin fails to automatically load the plugin, you can

- Open rizin and run `e dir.plugins`. You'll get the exact path where
Expand Down
3 changes: 1 addition & 2 deletions Source/Cutter/Decompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void *ReaiDec::pollAndSignalFinished (ReaiDec *self) {

// keep polling for decompilation
while (self->isRunning()) {
REAI_LOG_TRACE ("still polling... going for sleep for 2 seconds");
rz_sys_sleep (2); // 2 seconds
REAI_LOG_TRACE ("still polling...");
}

// get decompiled code after finished
Expand Down
7 changes: 4 additions & 3 deletions Source/Cutter/Ui/FunctionSimilarityDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ FunctionSimilarityDialog::FunctionSimilarityDialog (QWidget* parent) : QDialog (
confidenceLabel->setText (QString ("%1 % min confidence").arg (value));
});

enableDebugModeCheckBox = new QCheckBox ("Enable debug mode", this);
enableDebugModeCheckBox =
new QCheckBox ("Restrict suggestions to debug symbols only?", this);
mainLayout->addWidget (enableDebugModeCheckBox);
enableDebugModeCheckBox->setCheckState (Qt::CheckState::Checked);
}
Expand All @@ -116,8 +117,8 @@ void FunctionSimilarityDialog::on_FindSimilarNames() {
QByteArray fnNameByteArr = fnName.toLatin1();
CString fnNameCStr = fnNameByteArr.constData();

Float32 confidence = confidenceSlider->value() / 100.f;
Bool debugMode = enableDebugModeCheckBox->checkState() == Qt::CheckState::Checked;
Uint32 confidence = confidenceSlider->value();
Bool debugMode = enableDebugModeCheckBox->checkState() == Qt::CheckState::Checked;

QString maxResultCountStr = maxResultsInput->text();
bool success = false;
Expand Down

0 comments on commit 5cdd317

Please sign in to comment.