xref: /llvm-project/lldb/source/Commands/CommandObjectThread.h (revision 6611103cfe7a8c08554816fc08abef2e2960e799)
1 //===-- CommandObjectThread.h -----------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef liblldb_CommandObjectThread_h_
11 #define liblldb_CommandObjectThread_h_
12 
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Interpreter/CommandObjectMultiword.h"
18 
19 namespace lldb_private {
20 
21 class CommandObjectMultiwordThread : public CommandObjectMultiword
22 {
23 public:
24 
25     CommandObjectMultiwordThread (CommandInterpreter &interpreter);
26 
27     virtual
28     ~CommandObjectMultiwordThread ();
29 
30 };
31 
32 
33 bool
34 DisplayThreadInfo (CommandInterpreter &interpreter,
35                    Stream &strm,
36                    Thread *thread,
37                    bool only_threads_with_stop_reason,
38                    bool show_source);
39 
40 size_t
41 DisplayThreadsInfo (CommandInterpreter &interpreter,
42                     ExecutionContext *exe_ctx,
43                     CommandReturnObject &result,
44                     bool only_threads_with_stop_reason,
45                     bool show_source);
46 
47 size_t
48 DisplayFramesForExecutionContext (Thread *thread,
49                                   CommandInterpreter &interpreter,
50                                   Stream& strm,
51                                   bool ascending,
52                                   uint32_t first_frame,
53                                   uint32_t num_frames,
54                                   bool show_frame_info,
55                                   uint32_t num_frames_with_source,
56                                   uint32_t source_lines_before,
57                                   uint32_t source_lines_after);
58 
59 bool
60 DisplayFrameForExecutionContext (Thread *thread,
61                                  StackFrame *frame,
62                                  CommandInterpreter &interpreter,
63                                  Stream& strm,
64                                  bool show_frame_info,
65                                  bool show_source,
66                                  uint32_t source_lines_before,
67                                  uint32_t source_lines_after);
68 
69 } // namespace lldb_private
70 
71 #endif  // liblldb_CommandObjectThread_h_
72