LLDB mainline
ThreadPlanStepInstruction.h
Go to the documentation of this file.
1//===-- ThreadPlanStepInstruction.h -----------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H
10#define LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H
11
12#include "lldb/Target/Thread.h"
14#include "lldb/lldb-private.h"
15
16namespace lldb_private {
17
19public:
20 ThreadPlanStepInstruction(Thread &thread, bool step_over, bool stop_others,
21 Vote report_stop_vote, Vote report_run_vote);
22
24
25 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
26 bool ValidatePlan(Stream *error) override;
27 bool ShouldStop(Event *event_ptr) override;
28 bool StopOthers() override;
30 bool WillStop() override;
31 bool MischiefManaged() override;
32 bool IsPlanStale() override;
33
34protected:
35 bool DoPlanExplainsStop(Event *event_ptr) override;
36
37 void SetUpState();
38
39private:
41 bool step_over, bool abort_other_plans, bool stop_other_threads,
42 Status &status);
43
47 // These two are used only for the step over case.
51
55};
56
57} // namespace lldb_private
58
59#endif // LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H
static llvm::raw_ostream & error(Stream &strm)
An error handling class.
Definition: Status.h:44
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
bool DoPlanExplainsStop(Event *event_ptr) override
const ThreadPlanStepInstruction & operator=(const ThreadPlanStepInstruction &)=delete
void GetDescription(Stream *s, lldb::DescriptionLevel level) override
Print a description of this thread to the stream s.
bool ValidatePlan(Stream *error) override
Returns whether this plan could be successfully created.
ThreadPlanStepInstruction(const ThreadPlanStepInstruction &)=delete
virtual lldb::ThreadPlanSP QueueThreadPlanForStepSingleInstruction(bool step_over, bool abort_other_plans, bool stop_other_threads, Status &status)
Queues the plan used to step one instruction from the current PC of thread.
Definition: Thread.cpp:1255
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
Definition: lldb-forward.h:449
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
StateType
Process and Thread States.
uint64_t addr_t
Definition: lldb-types.h:80