LLDB mainline
ThreadPlanStepThrough.h
Go to the documentation of this file.
1//===-- ThreadPlanStepThrough.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_THREADPLANSTEPTHROUGH_H
10#define LLDB_TARGET_THREADPLANSTEPTHROUGH_H
11
12#include "lldb/Target/Thread.h"
14
15namespace lldb_private {
16
18public:
19 ~ThreadPlanStepThrough() override;
20
21 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
22 bool ValidatePlan(Stream *error) override;
23 bool ShouldStop(Event *event_ptr) override;
24 bool StopOthers() override;
26 bool WillStop() override;
27 bool MischiefManaged() override;
28 void DidPush() override;
29
30protected:
31 bool DoPlanExplainsStop(Event *event_ptr) override;
32 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
33
34 ThreadPlanStepThrough(Thread &thread, StackID &return_stack_id,
35 bool stop_others);
36
38
40
41private:
44 bool abort_other_plans,
45 bool stop_others, Status &status);
46
48
55
59};
60
61} // namespace lldb_private
62
63#endif // LLDB_TARGET_THREADPLANSTEPTHROUGH_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
ThreadPlanStepThrough(const ThreadPlanStepThrough &)=delete
const ThreadPlanStepThrough & operator=(const ThreadPlanStepThrough &)=delete
lldb::StateType GetPlanRunState() override
bool DoWillResume(lldb::StateType resume_state, bool current_plan) override
bool DoPlanExplainsStop(Event *event_ptr) override
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.
bool ShouldStop(Event *event_ptr) override
virtual lldb::ThreadPlanSP QueueThreadPlanForStepThrough(StackID &return_stack_id, bool abort_other_plans, bool stop_other_threads, Status &status)
Gets the plan used to step through the code that steps from a function call site at the current PC in...
Definition: Thread.cpp:1342
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
Definition: lldb-forward.h:447
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
StateType
Process and Thread States.
int32_t break_id_t
Definition: lldb-types.h:86
uint64_t addr_t
Definition: lldb-types.h:80