diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-08-19 02:52:07 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-08-19 02:52:07 +0000 |
commit | aef7de8492f482254b6bf8d61430ccfd5cda1199 (patch) | |
tree | b29c4ab0bac0642c2c766488e173646c7fabcc66 /lldb/scripts/interface | |
parent | e8529c28f1c109e0c5f7be3ff96b17248c69b9bb (diff) | |
download | bcm5719-llvm-aef7de8492f482254b6bf8d61430ccfd5cda1199.tar.gz bcm5719-llvm-aef7de8492f482254b6bf8d61430ccfd5cda1199.zip |
Add StructuredData plugin type; showcase with new DarwinLog feature
See docs/structured_data/StructuredDataPlugins.md for details.
differential review: https://reviews.llvm.org/D22976
reviewers: clayborg, jingham
llvm-svn: 279198
Diffstat (limited to 'lldb/scripts/interface')
-rw-r--r-- | lldb/scripts/interface/SBProcess.i | 9 | ||||
-rw-r--r-- | lldb/scripts/interface/SBStructuredData.i | 42 | ||||
-rw-r--r-- | lldb/scripts/interface/SBTarget.i | 2 |
3 files changed, 51 insertions, 2 deletions
diff --git a/lldb/scripts/interface/SBProcess.i b/lldb/scripts/interface/SBProcess.i index d9de9d08768..b5e12a086fe 100644 --- a/lldb/scripts/interface/SBProcess.i +++ b/lldb/scripts/interface/SBProcess.i @@ -44,7 +44,8 @@ public: eBroadcastBitInterrupt = (1 << 1), eBroadcastBitSTDOUT = (1 << 2), eBroadcastBitSTDERR = (1 << 3), - eBroadcastBitProfileData = (1 << 4) + eBroadcastBitProfileData = (1 << 4), + eBroadcastBitStructuredData = (1 << 5) }; SBProcess (); @@ -351,9 +352,15 @@ public: static bool GetInterruptedFromEvent (const lldb::SBEvent &event); + static lldb::SBStructuredData + GetStructuredDataFromEvent (const lldb::SBEvent &event); + static bool EventIsProcessEvent (const lldb::SBEvent &event); + static bool + EventIsStructuredDataEvent (const lldb::SBEvent &event); + lldb::SBBroadcaster GetBroadcaster () const; diff --git a/lldb/scripts/interface/SBStructuredData.i b/lldb/scripts/interface/SBStructuredData.i new file mode 100644 index 00000000000..225b088c433 --- /dev/null +++ b/lldb/scripts/interface/SBStructuredData.i @@ -0,0 +1,42 @@ +//===-- SWIG Interface for SBStructuredData ---------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +namespace lldb { + + %feature("docstring", + "A class representing a StructuredData event. + + This class wraps the event type generated by StructuredData + features." + ) SBStructuredData; + class SBStructuredData + { + public: + + SBStructuredData(); + + SBStructuredData(const lldb::SBStructuredData &rhs); + + SBStructuredData(const lldb::EventSP &event_sp); + + ~SBStructuredData(); + + bool + IsValid() const; + + void + Clear(); + + lldb::SBError + GetAsJSON(lldb::SBStream &stream) const; + + lldb::SBError + GetDescription(lldb::SBStream &stream) const; + }; +} diff --git a/lldb/scripts/interface/SBTarget.i b/lldb/scripts/interface/SBTarget.i index 6198c35fbd7..12494142866 100644 --- a/lldb/scripts/interface/SBTarget.i +++ b/lldb/scripts/interface/SBTarget.i @@ -178,7 +178,7 @@ public: /// Some launch options specified by logical OR'ing /// lldb::LaunchFlags enumeration values together. /// - /// @param[in] stop_at_endtry + /// @param[in] stop_at_entry /// If false do not stop the inferior at the entry point. /// /// @param[out] |