Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 79b397a

Browse files
committed
Integrate database markup procedure with undo system
Resolves: https://github.com/jonpalmisc/ObjectiveNinja/issues/38
1 parent 399d2d8 commit 79b397a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Plugin/InfoHandler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ void InfoHandler::applyMethodType(BinaryViewRef bv, const ObjectiveNinja::ClassI
120120

121121
void InfoHandler::applyInfoToView(SharedAnalysisInfo info, BinaryViewRef bv)
122122
{
123+
bv->BeginUndoActions();
124+
123125
BinaryReader reader(bv);
124126

125127
auto taggedPointerType = namedType(bv, CustomTypes::TaggedPointer);
@@ -195,4 +197,7 @@ void InfoHandler::applyInfoToView(SharedAnalysisInfo info, BinaryViewRef bv)
195197
defineVariable(bv, ci.methodListAddress, methodListType);
196198
defineSymbol(bv, ci.methodListAddress, ci.name, "ml_");
197199
}
200+
201+
bv->CommitUndoActions();
202+
bv->UpdateAnalysis();
198203
}

0 commit comments

Comments
 (0)