LLDB mainline
ThreadPlanStepUntil.h
Go to the documentation of this file.
1//===-- ThreadPlanStepUntil.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_THREADPLANSTEPUNTIL_H
10#define LLDB_TARGET_THREADPLANSTEPUNTIL_H
11
12#include "lldb/Target/Thread.h"
14
15namespace lldb_private {
16
18public:
19 ThreadPlanStepUntil(Thread &thread, llvm::ArrayRef<lldb::addr_t> address_list,
20 bool stop_others, uint32_t frame_idx = 0);
21
22 ~ThreadPlanStepUntil() override;
23
24 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
25 bool ValidatePlan(Stream *error) override;
26 bool ShouldStop(Event *event_ptr) override;
27 bool StopOthers() override;
29 bool WillStop() override;
30 bool MischiefManaged() override;
31
32protected:
33 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
34 bool DoPlanExplainsStop(Event *event_ptr) override;
35
36 void AnalyzeStop();
37
38private:
47
48 typedef std::map<lldb::addr_t, lldb::break_id_t> until_collection;
51
52 void Clear();
53
54 // Need an appropriate marker for the current stack so we can tell step out
55 // from step in.
56
59};
60
61} // namespace lldb_private
62
63#endif // LLDB_TARGET_THREADPLANSTEPUNTIL_H
static llvm::raw_ostream & error(Stream &strm)
A stream class that can stream formatted output to a file.
Definition Stream.h:28
bool DoWillResume(lldb::StateType resume_state, bool current_plan) override
ThreadPlanStepUntil(const ThreadPlanStepUntil &)=delete
void GetDescription(Stream *s, lldb::DescriptionLevel level) override
Print a description of this thread to the stream s.
bool DoPlanExplainsStop(Event *event_ptr) override
ThreadPlanStepUntil(Thread &thread, llvm::ArrayRef< lldb::addr_t > address_list, bool stop_others, uint32_t frame_idx=0)
bool ValidatePlan(Stream *error) override
Returns whether this plan could be successfully created.
lldb::StateType GetPlanRunState() override
const ThreadPlanStepUntil & operator=(const ThreadPlanStepUntil &)=delete
std::map< lldb::addr_t, lldb::break_id_t > until_collection
bool ShouldStop(Event *event_ptr) override
ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote)
A class that represents a running process on the host machine.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
StateType
Process and Thread States.
int32_t break_id_t
Definition lldb-types.h:87
uint64_t addr_t
Definition lldb-types.h:80