Skip to content
Discussion options

You must be logged in to vote

There are a couple current analyzers that also only want to run once. They do a bit of hacky stuff to accomplish it.

For an example, check out

long txId = program.getCurrentTransactionInfo().getID();
if (txId == lastTxId) {
// Only run once per analysis session - as denoted by being in the same transaction
return true;
}
lastTxId = txId;
if (isAlreadyImported(program)) {
Msg.info(this, "DWARF already imported, skipping.");
return false;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ignatirabo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7360 on January 10, 2025 10:53.