]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmnMIValue.h
MFV r337190: 9486 reduce memory used by device removal on fragmented pools
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmnMIValue.h
1 //===-- MICmnMIValue.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 #pragma once
11
12 // In-house headers:
13 #include "MICmnBase.h"
14
15 //++
16 //============================================================================
17 // Details: MI common code MI Result class. Part of the CMICmnMIValueRecord
18 //          set of objects.
19 //          The syntax is as follows:
20 //          result-record ==>  [ token ] "^" result-class ( "," result )* nl
21 //          token = any sequence of digits
22 //          * = 0 to many
23 //          nl = CR | CR_LF
24 //          result-class ==> "done" | "running" | "connected" | "error" | "exit"
25 //          result ==> variable "=" value
26 //          value ==> const | tuple | list
27 //          const ==> c-string (7 bit iso c string content)
28 //          tuple ==>  "{}" | "{" result ( "," result )* "}"
29 //          list ==>  "[]" | "[" value ( "," value )* "]" | "[" result ( ","
30 //          result )* "]"
31 //          More information see:
32 //          http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html
33 //--
34 class CMICmnMIValue : public CMICmnBase {
35   // Methods:
36 public:
37   /* ctor */ CMICmnMIValue();
38   //
39   const CMIUtilString &GetString() const;
40
41   // Overridden:
42 public:
43   // From CMICmnBase
44   /* dtor */ ~CMICmnMIValue() override;
45
46   // Attributes:
47 protected:
48   CMIUtilString m_strValue;
49   bool m_bJustConstructed; // True = *this just constructed with no value, false
50                            // = *this has had value added to it
51 };