]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmdCmdThread.h
Update LLDB snapshot to upstream r225923 (git 2b588ecd)
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmdCmdThread.h
1 //===-- MICmdCmdThread.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 //++
11 // File:        MICmdCmdThread.h
12 //
13 // Overview:    CMICmdCmdThreadInfo interface.
14 //
15 //              To implement new MI commands derive a new command class from the command base
16 //              class. To enable the new command for interpretation add the new command class
17 //              to the command factory. The files of relevance are:
18 //                  MICmdCommands.cpp
19 //                  MICmdBase.h / .cpp
20 //                  MICmdCmd.h / .cpp
21 //              For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery
22 //              command class as an example.
23 //
24 // Environment: Compilers:  Visual C++ 12.
25 //                          gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
26 //              Libraries:  See MIReadmetxt.
27 //
28 // Copyright:   None.
29 //--
30
31 #pragma once
32
33 // In-house headers:
34 #include "MICmdBase.h"
35 #include "MICmnMIValueTuple.h"
36 #include "MICmnMIValueList.h"
37
38 //++ ============================================================================
39 // Details: MI command class. MI commands derived from the command base class.
40 //          *this class implements MI command "thread-info".
41 // Gotchas: None.
42 // Authors: Illya Rudkin 07/03/2014.
43 // Changes: None.
44 //--
45 class CMICmdCmdThreadInfo : public CMICmdBase
46 {
47     // Statics:
48   public:
49     // Required by the CMICmdFactory when registering *this command
50     static CMICmdBase *CreateSelf(void);
51
52     // Methods:
53   public:
54     /* ctor */ CMICmdCmdThreadInfo(void);
55
56     // Overridden:
57   public:
58     // From CMICmdInvoker::ICmd
59     virtual bool Execute(void);
60     virtual bool Acknowledge(void);
61     virtual bool ParseArgs(void);
62     // From CMICmnBase
63     /* dtor */ virtual ~CMICmdCmdThreadInfo(void);
64
65     // Typedefs:
66   private:
67     typedef std::vector<CMICmnMIValueTuple> VecMIValueTuple_t;
68
69     // Attributes:
70   private:
71     CMICmnMIValueTuple m_miValueTupleThread;
72     bool m_bSingleThread;  // True = yes single thread, false = multiple threads
73     bool m_bThreadInvalid; // True = invalid, false = ok
74     VecMIValueTuple_t m_vecMIValueTuple;
75     const CMIUtilString m_constStrArgNamedThreadId;
76 };