• Home
  • Raw
  • Download

Lines Matching full:error

50 std::optional<Error> Debugger::SetNotification(PtThread thread, bool enable, PtHookType hookType)  in SetNotification()
71 const PtLocation &location, std::optional<Error> &error) in CheckLocationInClass() argument
75 cda.EnumerateMethods([&pf, &location, &error, &found](panda_file::MethodDataAccessor mda) { in CheckLocationInClass()
85 error = Error(Error::Type::INVALID_BREAKPOINT, in CheckLocationInClass()
97 std::optional<Error> Debugger::CheckLocation(const PtLocation &location) in CheckLocation()
99 std::optional<Error> res; in CheckLocation()
120 Error(Error::Type::METHOD_NOT_FOUND, in CheckLocation()
129 std::optional<Error> Debugger::SetBreakpoint(const PtLocation &location) in SetBreakpoint()
131 auto error = CheckLocation(location); in SetBreakpoint() local
132 if (error.has_value()) { in SetBreakpoint()
133 return error; in SetBreakpoint()
138 return Error(Error::Type::BREAKPOINT_ALREADY_EXISTS, in SetBreakpoint()
146 std::optional<Error> Debugger::RemoveBreakpoint(const PtLocation &location) in RemoveBreakpoint()
149 return Error(Error::Type::BREAKPOINT_NOT_FOUND, "Breakpoint not found"); in RemoveBreakpoint()
205 Expected<panda::Frame *, Error> GetPandaFrameByPtThread(PtThread thread, uint32_t frameDepth, in GetPandaFrameByPtThread()
215 return Unexpected(Error(Error::Type::THREAD_NOT_SUSPENDED, in GetPandaFrameByPtThread()
227 return Unexpected(Error(Error::Type::FRAME_NOT_FOUND, in GetPandaFrameByPtThread()
234 Expected<interpreter::StaticVRegisterRef, Error> Debugger::GetVRegByPandaFrame(panda::Frame *frame, in GetVRegByPandaFrame()
246Error(Error::Type::INVALID_REGISTER, std::string("Invalid register number: ") + std::to_string(reg… in GetVRegByPandaFrame()
249 Expected<interpreter::DynamicVRegisterRef, Error> Debugger::GetVRegByPandaFrameDyn(panda::Frame *fr… in GetVRegByPandaFrameDyn()
261Error(Error::Type::INVALID_REGISTER, std::string("Invalid register number: ") + std::to_string(reg… in GetVRegByPandaFrameDyn()
264 std::optional<Error> Debugger::GetThisVariableByFrame(PtThread thread, uint32_t frameDepth, ObjectH… in GetThisVariableByFrame()
269 std::optional<Error> nativeError; in GetThisVariableByFrame()
277Error(Error::Type::INVALID_VALUE, std::string("Static native method, no this address slot, threadI… in GetThisVariableByFrame()
299 return ret.Error(); in GetThisVariableByFrame()
303 return Error(Error::Type::INVALID_VALUE, in GetThisVariableByFrame()
317 std::optional<Error> Debugger::GetVariable(PtThread thread, uint32_t frameDepth, int32_t regNumber, in GetVariable()
323 return ret.Error(); in GetVariable()
330 return reg.Error(); in GetVariable()
340 return reg.Error(); in GetVariable()
348 std::optional<Error> Debugger::SetVariable(PtThread thread, uint32_t frameDepth, int32_t regNumber, in SetVariable()
354 return ret.Error(); in SetVariable()
360 return reg.Error(); in SetVariable()
370 return reg.Error(); in SetVariable()
378 Expected<std::unique_ptr<PtFrame>, Error> Debugger::GetCurrentFrame(PtThread thread) const in GetCurrentFrame()
394 std::optional<Error> Debugger::EnumerateFrames(PtThread thread, std::function<bool(const PtFrame &)… in EnumerateFrames()
413 std::optional<Error> Debugger::SuspendThread(PtThread thread) const in SuspendThread()
419 return Error(Error::Type::THREAD_NOT_FOUND, in SuspendThread()
428 std::optional<Error> Debugger::ResumeThread(PtThread thread) const in ResumeThread()
434 return Error(Error::Type::THREAD_NOT_FOUND, in ResumeThread()
443 std::optional<Error> Debugger::RestartFrame(PtThread thread, uint32_t frameNumber) const in RestartFrame()
450 return Error(Error::Type::THREAD_NOT_FOUND, in RestartFrame()
456 return Error(Error::Type::THREAD_NOT_SUSPENDED, in RestartFrame()
467 … return Error(Error::Type::OPAQUE_FRAME, std::string("Thread ") + std::to_string(thread.GetId()) + in RestartFrame()
481 …return Error(Error::Type::FRAME_NOT_FOUND, std::string("Thread ") + std::to_string(thread.GetId())… in RestartFrame()
487 …return Error(Error::Type::NO_MORE_FRAMES, std::string("Thread ") + std::to_string(thread.GetId()) + in RestartFrame()
506 std::optional<Error> Debugger::NotifyFramePop(PtThread thread, uint32_t depth) const in NotifyFramePop()
511 /* TODO: (cmd) the second NotifyFramePop is error. use one debugger instance to resolve this. in NotifyFramePop()
513 return Error(Error::Type::THREAD_NOT_SUSPENDED, in NotifyFramePop()
522 … return Error(Error::Type::OPAQUE_FRAME, std::string("Thread ") + std::to_string(thread.GetId()) + in NotifyFramePop()
526 return Error(Error::Type::NO_MORE_FRAMES, in NotifyFramePop()
784 std::optional<Error> Debugger::SetPropertyAccessWatch(BaseClass *klass, PtProperty property) in SetPropertyAccessWatch()
791 return Error(Error::Type::INVALID_PROPERTY_ACCESS_WATCH, in SetPropertyAccessWatch()
800 std::optional<Error> Debugger::ClearPropertyAccessWatch(BaseClass *klass, PtProperty property) in ClearPropertyAccessWatch()
806 return Error(Error::Type::PROPERTY_ACCESS_WATCH_NOT_FOUND, in ClearPropertyAccessWatch()
813 std::optional<Error> Debugger::SetPropertyModificationWatch(BaseClass *klass, PtProperty property) in SetPropertyModificationWatch()
820 return Error(Error::Type::INVALID_PROPERTY_MODIFY_WATCH, in SetPropertyModificationWatch()
828 std::optional<Error> Debugger::ClearPropertyModificationWatch(BaseClass *klass, PtProperty property) in ClearPropertyModificationWatch()
834 return Error(Error::Type::PROPERTY_MODIFY_WATCH_NOT_FOUND, in ClearPropertyModificationWatch()