]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmdCmdSymbol.h
Merge lldb trunk r366426, resolve conflicts, and update FREEBSD-Xlist.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmdCmdSymbol.h
1 //===-- MICmdCmdSymbol.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 // Overview:    CMICmdCmdSymbolListLines     interface.
10 //
11 //              To implement new MI commands derive a new command class from the
12 //              command base
13 //              class. To enable the new command for interpretation add the new
14 //              command class
15 //              to the command factory. The files of relevance are:
16 //                  MICmdCommands.cpp
17 //                  MICmdBase.h / .cpp
18 //                  MICmdCmd.h / .cpp
19 //              For an introduction to adding a new command see
20 //              CMICmdCmdSupportInfoMiCmdQuery
21 //              command class as an example.
22
23 #pragma once
24
25 // Third party headers:
26
27 // In-house headers:
28 #include "MICmdBase.h"
29 #include "MICmnMIValueList.h"
30
31 //++
32 //============================================================================
33 // Details: MI command class. MI commands derived from the command base class.
34 //          *this class implements MI command "symbol-list-lines".
35 //--
36 class CMICmdCmdSymbolListLines : public CMICmdBase {
37   // Statics:
38 public:
39   // Required by the CMICmdFactory when registering *this command
40   static CMICmdBase *CreateSelf();
41
42   // Methods:
43 public:
44   /* ctor */ CMICmdCmdSymbolListLines();
45
46   // Overridden:
47 public:
48   // From CMICmdInvoker::ICmd
49   bool Execute() override;
50   bool Acknowledge() override;
51   bool ParseArgs() override;
52   // From CMICmnBase
53   /* dtor */ ~CMICmdCmdSymbolListLines() override;
54
55   // Attributes:
56 private:
57   CMICmnMIValueList m_resultList;
58   const CMIUtilString m_constStrArgNameFile;
59 };