mirror of
https://github.com/openharmony/ark_runtime_core.git
synced 2026-07-16 08:55:59 -04:00
Sync wagner-mater to ohos-master
Signed-off-by: shawn_hu_ls <huxiaowei3@huawei.com>
This commit is contained in:
@@ -490,6 +490,8 @@ public:
|
||||
|
||||
virtual std::optional<Error> SetPropertyModificationWatch(PtClass klass, PtProperty property) = 0;
|
||||
|
||||
virtual std::optional<Error> GetThisVariableByFrame(PtThread thread, uint32_t frameDepth, PtValue *value) = 0;
|
||||
|
||||
virtual std::optional<Error> ClearPropertyModificationWatch(PtClass klass, PtProperty property) = 0;
|
||||
|
||||
// * * * * *
|
||||
|
||||
@@ -166,6 +166,11 @@ Expected<panda::Frame::VRegister *, Error> Debugger::GetVRegByPtThread(PtThread
|
||||
Error(Error::Type::INVALID_REGISTER, std::string("Invalid register number: ") + std::to_string(regNumber)));
|
||||
}
|
||||
|
||||
std::optional<Error> Debugger::GetThisVariableByFrame(PtThread thread, uint32_t frameDepth, PtValue *result)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
std::optional<Error> Debugger::GetVariable(PtThread thread, uint32_t frameDepth, int32_t regNumber,
|
||||
PtValue *result) const
|
||||
{
|
||||
@@ -790,11 +795,11 @@ static uint64_t GetVRegValue(const Frame::VRegister ®)
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
|
||||
PtDebugFrame::PtDebugFrame(Method *method, const Frame *interpreterFrame) : method_(MethodToPtMethod(method))
|
||||
PtDebugFrame::PtDebugFrame(Method *method, const Frame *interpreterFrame)
|
||||
: method_(MethodToPtMethod(method)),
|
||||
method_id_(method->GetFileId()),
|
||||
panda_file_(method->GetPandaFile()->GetFilename())
|
||||
{
|
||||
panda_file_ = method->GetPandaFile()->GetFilename();
|
||||
method_id_ = method->GetFileId();
|
||||
|
||||
is_interpreter_frame_ = interpreterFrame != nullptr;
|
||||
if (!is_interpreter_frame_) {
|
||||
return;
|
||||
|
||||
@@ -363,6 +363,8 @@ public:
|
||||
|
||||
std::optional<Error> ClearPropertyModificationWatch(PtClass klass, PtProperty property) override;
|
||||
|
||||
std::optional<Error> GetThisVariableByFrame(PtThread thread, uint32_t frameDepth, PtValue *result) override;
|
||||
|
||||
private:
|
||||
Expected<panda::Frame::VRegister *, Error> GetVRegByPtThread(PtThread thread, uint32_t frameDepth,
|
||||
int32_t regNumber) const;
|
||||
|
||||
Reference in New Issue
Block a user