blob: 7fc58261ed0e98c10ac85496c09cf469d2a72222 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- 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
19namespace lldb_private {
20
Chris Lattner24943d22010-06-08 16:52:24 +000021class CommandObjectMultiwordThread : public CommandObjectMultiword
22{
23public:
24
Greg Clayton63094e02010-06-23 01:19:29 +000025 CommandObjectMultiwordThread (CommandInterpreter &interpreter);
Chris Lattner24943d22010-06-08 16:52:24 +000026
27 virtual
28 ~CommandObjectMultiwordThread ();
29
30};
31
32
33bool
Greg Clayton63094e02010-06-23 01:19:29 +000034DisplayThreadInfo (CommandInterpreter &interpreter,
Chris Lattner24943d22010-06-08 16:52:24 +000035 Stream &strm,
36 Thread *thread,
37 bool only_threads_with_stop_reason,
38 bool show_source);
39
40size_t
Greg Clayton63094e02010-06-23 01:19:29 +000041DisplayThreadsInfo (CommandInterpreter &interpreter,
Chris Lattner24943d22010-06-08 16:52:24 +000042 ExecutionContext *exe_ctx,
43 CommandReturnObject &result,
44 bool only_threads_with_stop_reason,
45 bool show_source);
46
47size_t
48DisplayFramesForExecutionContext (Thread *thread,
Greg Clayton63094e02010-06-23 01:19:29 +000049 CommandInterpreter &interpreter,
Chris Lattner24943d22010-06-08 16:52:24 +000050 Stream& strm,
Chris Lattner24943d22010-06-08 16:52:24 +000051 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
58bool
59DisplayFrameForExecutionContext (Thread *thread,
60 StackFrame *frame,
Greg Clayton63094e02010-06-23 01:19:29 +000061 CommandInterpreter &interpreter,
Chris Lattner24943d22010-06-08 16:52:24 +000062 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_