LLDB  mainline
TraceCursor.cpp
Go to the documentation of this file.
1 //===-- TraceCursor.cpp -----------------------------------------*- 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 
10 
12 
13 using namespace lldb;
14 using namespace lldb_private;
15 using namespace llvm;
16 
17 TraceCursor::TraceCursor(lldb::ThreadSP thread_sp)
18  : m_exe_ctx_ref(ExecutionContext(thread_sp)) {}
19 
21  return m_exe_ctx_ref;
22 }
23 
25  lldb::TraceInstructionControlFlowType granularity) {
26  m_granularity = granularity;
27 }
28 
29 void TraceCursor::SetIgnoreErrors(bool ignore_errors) {
30  m_ignore_errors = ignore_errors;
31 }
32 
33 void TraceCursor::SetForwards(bool forwards) { m_forwards = forwards; }
34 
35 bool TraceCursor::IsForwards() const { return m_forwards; }
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
llvm
Definition: Debugger.h:49
lldb_private::TraceCursor::SetGranularity
void SetGranularity(lldb::TraceInstructionControlFlowType granularity)
Set the granularity to use in the TraceCursor::Next() method.
Definition: TraceCursor.cpp:24
lldb_private::TraceCursor::m_granularity
lldb::TraceInstructionControlFlowType m_granularity
Definition: TraceCursor.h:203
lldb_private::TraceCursor::IsForwards
bool IsForwards() const
Check if the direction to use in the TraceCursor::Next() method is forwards.
Definition: TraceCursor.cpp:35
lldb_private::TraceCursor::SetIgnoreErrors
void SetIgnoreErrors(bool ignore_errors)
Set the "ignore errors" flag to use in the TraceCursor::Next() method.
Definition: TraceCursor.cpp:29
lldb_private::TraceCursor::m_forwards
bool m_forwards
Definition: TraceCursor.h:206
lldb_private::TraceCursor::m_ignore_errors
bool m_ignore_errors
Definition: TraceCursor.h:205
TraceCursor.h
lldb_private::TraceCursor::m_exe_ctx_ref
ExecutionContextRef m_exe_ctx_ref
Definition: TraceCursor.h:201
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::TraceCursor::SetForwards
void SetForwards(bool forwards)
Set the direction to use in the TraceCursor::Next() method.
Definition: TraceCursor.cpp:33
lldb
Definition: SBAddress.h:15
lldb_private::ExecutionContextRef
Execution context objects refer to objects in the execution of the program that is being debugged.
Definition: ExecutionContext.h:72
ExecutionContext.h
lldb_private::TraceCursor::GetExecutionContextRef
ExecutionContextRef & GetExecutionContextRef()
Definition: TraceCursor.cpp:20