xref: /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.h (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 //===-- NativeProcessSoftwareSingleStep.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_NativeProcessSoftwareSingleStep_h
10 #define lldb_NativeProcessSoftwareSingleStep_h
11 
12 #include "lldb/Host/common/NativeProcessProtocol.h"
13 #include "lldb/Host/common/NativeThreadProtocol.h"
14 
15 #include <map>
16 
17 namespace lldb_private {
18 
19 class NativeProcessSoftwareSingleStep {
20 public:
21   Status SetupSoftwareSingleStepping(NativeThreadProtocol &thread);
22 
23 protected:
24   // List of thread ids stepping with a breakpoint with the address of
25   // the relevan breakpoint
26   std::map<lldb::tid_t, std::vector<lldb::addr_t>>
27       m_threads_stepping_with_breakpoint;
28 };
29 
30 } // namespace lldb_private
31 
32 #endif // #ifndef lldb_NativeProcessSoftwareSingleStep_h
33