Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 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 | |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 21 | class CommandObjectMultiwordThread : public CommandObjectMultiword |
| 22 | { |
| 23 | public: |
| 24 | |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 25 | CommandObjectMultiwordThread (CommandInterpreter &interpreter); |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 26 | |
| 27 | virtual |
| 28 | ~CommandObjectMultiwordThread (); |
| 29 | |
| 30 | }; |
| 31 | |
| 32 | |
| 33 | bool |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 34 | DisplayThreadInfo (CommandInterpreter &interpreter, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 35 | Stream &strm, |
| 36 | Thread *thread, |
| 37 | bool only_threads_with_stop_reason, |
| 38 | bool show_source); |
| 39 | |
| 40 | size_t |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 41 | DisplayThreadsInfo (CommandInterpreter &interpreter, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 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, |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 49 | CommandInterpreter &interpreter, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 50 | Stream& strm, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 51 | uint32_t first_frame, |
| 52 | uint32_t num_frames, |
| 53 | bool show_frame_info, |
| 54 | uint32_t num_frames_with_source, |
| 55 | uint32_t source_lines_before, |
| 56 | uint32_t source_lines_after); |
| 57 | |
| 58 | bool |
| 59 | DisplayFrameForExecutionContext (Thread *thread, |
| 60 | StackFrame *frame, |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 61 | CommandInterpreter &interpreter, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 62 | Stream& strm, |
| 63 | bool show_frame_info, |
| 64 | bool show_source, |
| 65 | uint32_t source_lines_before, |
| 66 | uint32_t source_lines_after); |
| 67 | |
| 68 | } // namespace lldb_private |
| 69 | |
| 70 | #endif // liblldb_CommandObjectThread_h_ |