diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-12-20 19:53:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-12-20 19:53:05 +0000 |
commit | 0b57cec536236d46e3dba9bd041533462f33dbb7 (patch) | |
tree | 56229dbdbbf76d18580f72f789003db17246c8d9 /contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h | |
parent | 718ef55ec7785aae63f98f8ca05dc07ed399c16d (diff) | |
download | src-0b57cec536236d46e3dba9bd041533462f33dbb7.tar.gz src-0b57cec536236d46e3dba9bd041533462f33dbb7.zip |
Move all sources from the llvm project into contrib/llvm-project.
This uses the new layout of the upstream repository, which was recently
migrated to GitHub, and converted into a "monorepo". That is, most of
the earlier separate sub-projects with their own branches and tags were
consolidated into one top-level directory, and are now branched and
tagged together.
Updating the vendor area to match this layout is next.
Notes
Notes:
svn path=/head/; revision=355940
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h')
-rw-r--r-- | contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h b/contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h new file mode 100644 index 000000000000..3825bf6ee4f3 --- /dev/null +++ b/contrib/llvm-project/lldb/include/lldb/Target/ThreadPlanPython.h @@ -0,0 +1,66 @@ +//===-- ThreadPlanPython.h --------------------------------------------*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef liblldb_ThreadPlan_Python_h_ +#define liblldb_ThreadPlan_Python_h_ + +#include <string> + +#include "lldb/Target/Process.h" +#include "lldb/Target/StopInfo.h" +#include "lldb/Target/Target.h" +#include "lldb/Target/Thread.h" +#include "lldb/Target/ThreadPlan.h" +#include "lldb/Target/ThreadPlanTracer.h" +#include "lldb/Utility/StructuredData.h" +#include "lldb/Utility/UserID.h" +#include "lldb/lldb-private.h" + +namespace lldb_private { + +// ThreadPlanPython: +// + +class ThreadPlanPython : public ThreadPlan { +public: + ThreadPlanPython(Thread &thread, const char *class_name); + ~ThreadPlanPython() override; + + void GetDescription(Stream *s, lldb::DescriptionLevel level) override; + + bool ValidatePlan(Stream *error) override; + + bool ShouldStop(Event *event_ptr) override; + + bool MischiefManaged() override; + + bool WillStop() override; + + bool StopOthers() override; + + void DidPush() override; + + bool IsPlanStale() override; + +protected: + bool DoPlanExplainsStop(Event *event_ptr) override; + + lldb::StateType GetPlanRunState() override; + +private: + std::string m_class_name; + StructuredData::ObjectSP m_implementation_sp; + bool m_did_push; + + DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython); +}; + +} // namespace lldb_private + +#endif // liblldb_ThreadPlan_Python_h_ |