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