mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2024-11-23 23:49:50 +00:00
fix bug in bundle compiler mode
Issue:#I5SWSK Signed-off-by: yang-19970325 <yangyang585@huawei.com> Change-Id: I2bf099ce7256f7a3c3deb717cbc588d447597255
This commit is contained in:
parent
68cb971666
commit
cdd6fd5277
@ -895,7 +895,8 @@ bool DebuggerImpl::GenerateCallFrame(CallFrame *callFrame,
|
||||
{
|
||||
Method *method = DebuggerApi::GetMethod(frameHandler);
|
||||
auto methodId = method->GetMethodId();
|
||||
DebugInfoExtractor *extractor = GetExtractor(method->GetJSPandaFile());
|
||||
const JSPandaFile *jsPandaFile = method->GetJSPandaFile();
|
||||
DebugInfoExtractor *extractor = GetExtractor(jsPandaFile);
|
||||
if (extractor == nullptr) {
|
||||
LOG_DEBUGGER(ERROR) << "GenerateCallFrame: extractor is null";
|
||||
return false;
|
||||
@ -935,7 +936,9 @@ bool DebuggerImpl::GenerateCallFrame(CallFrame *callFrame,
|
||||
|
||||
std::vector<std::unique_ptr<Scope>> scopeChain;
|
||||
scopeChain.emplace_back(GetLocalScopeChain(frameHandler, &thisObj));
|
||||
scopeChain.emplace_back(GetModuleScopeChain());
|
||||
if (jsPandaFile != nullptr && !jsPandaFile->IsBundlePack()) {
|
||||
scopeChain.emplace_back(GetModuleScopeChain());
|
||||
}
|
||||
scopeChain.emplace_back(GetGlobalScopeChain());
|
||||
|
||||
callFrame->SetCallFrameId(callFrameId)
|
||||
|
Loading…
Reference in New Issue
Block a user