mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-12-03 08:21:21 +00:00
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:
parent
7fdd93b896
commit
3007565f56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user