From d6ce8048c5f58998a324239df711e29d4ba10b29 Mon Sep 17 00:00:00 2001 From: billow Date: Sat, 14 May 2022 17:08:52 +0800 Subject: [PATCH] convert to api for `aht` --- src/core/Cutter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index bcb9b728..ee9fbf9d 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -951,7 +951,12 @@ void CutterCore::applyStructureOffset(const QString &structureOffset, RVA offset offset = getOffset(); } - this->cmdRawAt("aht " + structureOffset, offset); + applyAtSeek( + [&]() { + CORE_LOCK(); + rz_core_analysis_hint_set_offset(core, structureOffset.toUtf8().constData()); + }, + offset); emit instructionChanged(offset); }