1 //===-- MICmnMIOutOfBandRecord.h --------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 #include "MICmnBase.h"
14 #include "MICmnMIValueConst.h"
15 #include "MICmnMIValueResult.h"
16 #include "MIUtilString.h"
19 //============================================================================
20 // Details: MI common code MI Out-of-band (Async) Record class. A class that
22 // MI result record data and the forming/format of data added to it.
23 // Out-of-band records are used to notify the GDB/MI client of
25 // changes that have occurred. Those changes can either be a
27 // of GDB/MI (e.g., a breakpoint modified) or a result of target
29 // (e.g., target stopped).
30 // The syntax is as follows:
31 // "*" type ( "," result )*
32 // type ==> running | stopped
34 // The Out-of-band record can be retrieve at any time *this object is
35 // instantiated so unless work is done on *this Out-of-band record then
37 // possible to return a malformed Out-of-band record. If nothing has
39 // or added to *this MI Out-of-band record object then text "<Invalid>"
43 // More information see:
44 // http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html//
46 class CMICmnMIOutOfBandRecord : public CMICmnBase {
50 // Details: Enumeration of the type of Out-of-band for *this Out-of-band
54 eOutOfBand_Running = 0,
56 eOutOfBand_BreakPointCreated,
57 eOutOfBand_BreakPointModified,
59 eOutOfBand_ThreadGroupAdded,
60 eOutOfBand_ThreadGroupExited,
61 eOutOfBand_ThreadGroupRemoved,
62 eOutOfBand_ThreadGroupStarted,
63 eOutOfBand_ThreadCreated,
64 eOutOfBand_ThreadExited,
65 eOutOfBand_ThreadSelected,
66 eOutOfBand_TargetModuleLoaded,
67 eOutOfBand_TargetModuleUnloaded,
68 eOutOfBand_TargetStreamOutput,
69 eOutOfBand_ConsoleStreamOutput,
70 eOutOfBand_LogStreamOutput
75 /* ctor */ CMICmnMIOutOfBandRecord();
76 /* ctor */ CMICmnMIOutOfBandRecord(OutOfBand_e veType);
77 /* ctor */ CMICmnMIOutOfBandRecord(OutOfBand_e veType,
78 const CMICmnMIValueConst &vConst);
79 /* ctor */ CMICmnMIOutOfBandRecord(OutOfBand_e veType,
80 const CMICmnMIValueResult &vResult);
82 const CMIUtilString &GetString() const;
83 void Add(const CMICmnMIValueResult &vResult);
88 /* dtor */ ~CMICmnMIOutOfBandRecord() override;
93 m_strAsyncRecord; // Holds the text version of the result record to date