Enhance StepArkManagedNativeFrame for AOT

Currently, when crashed in AOT, StepArkManagedNativeFrame will be called and returns false.
This causes ArkTS Code cannot be returned.

Issue: #I77ZPT

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I4d1d1594bcfe40ed9215e0e3592f66f1281ea0db
This commit is contained in:
lichenshuai 2023-05-24 17:23:03 +08:00
parent 7fdd93b896
commit 3007565f56

View File

@ -341,7 +341,9 @@ bool StepArkManagedNativeFrame(int pid, uintptr_t *pc, uintptr_t *fp, uintptr_t
LOG_ECMA(ERROR) << "FrameType ERROR, addr: " << currentPtr << ", frameType: " << frameType;
return false;
}
if (static_cast<FrameType>(frameType) == FrameType::ASM_INTERPRETER_ENTRY_FRAME) {
if (static_cast<FrameType>(frameType) == FrameType::OPTIMIZED_ENTRY_FRAME ||
static_cast<FrameType>(frameType) == FrameType::ASM_INTERPRETER_ENTRY_FRAME ||
static_cast<FrameType>(frameType) == FrameType::BUILTIN_ENTRY_FRAME) {
break;
}
currentPtr -= typeOffset;