aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/API/SBStream.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /include/lldb/API/SBStream.h
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
downloadsrc-14f1b3e8826ce43b978db93a62d1166055db5394.tar.gz
src-14f1b3e8826ce43b978db93a62d1166055db5394.zip
Vendor import of lldb trunk r290819:vendor/lldb/lldb-trunk-r290819
Notes
Notes: svn path=/vendor/lldb/dist/; revision=311128 svn path=/vendor/lldb/lldb-trunk-r290819/; revision=311129; tag=vendor/lldb/lldb-trunk-r290819
Diffstat (limited to 'include/lldb/API/SBStream.h')
-rw-r--r--include/lldb/API/SBStream.h145
1 files changed, 66 insertions, 79 deletions
diff --git a/include/lldb/API/SBStream.h b/include/lldb/API/SBStream.h
index 717979977d16..68fcae21c08e 100644
--- a/include/lldb/API/SBStream.h
+++ b/include/lldb/API/SBStream.h
@@ -16,100 +16,87 @@
namespace lldb {
-class LLDB_API SBStream
-{
+class LLDB_API SBStream {
public:
+ SBStream();
- SBStream ();
+ SBStream(SBStream &&rhs);
- SBStream (SBStream &&rhs);
+ ~SBStream();
- ~SBStream ();
+ bool IsValid() const;
- bool
- IsValid() const;
+ // If this stream is not redirected to a file, it will maintain a local
+ // cache for the stream data which can be accessed using this accessor.
+ const char *GetData();
- // If this stream is not redirected to a file, it will maintain a local
- // cache for the stream data which can be accessed using this accessor.
- const char *
- GetData ();
+ // If this stream is not redirected to a file, it will maintain a local
+ // cache for the stream output whose length can be accessed using this
+ // accessor.
+ size_t GetSize();
- // If this stream is not redirected to a file, it will maintain a local
- // cache for the stream output whose length can be accessed using this
- // accessor.
- size_t
- GetSize();
+ void Printf(const char *format, ...) __attribute__((format(printf, 2, 3)));
- void
- Printf (const char *format, ...) __attribute__ ((format (printf, 2, 3)));
+ void RedirectToFile(const char *path, bool append);
- void
- RedirectToFile (const char *path, bool append);
+ void RedirectToFileHandle(FILE *fh, bool transfer_fh_ownership);
- void
- RedirectToFileHandle (FILE *fh, bool transfer_fh_ownership);
+ void RedirectToFileDescriptor(int fd, bool transfer_fh_ownership);
- void
- RedirectToFileDescriptor (int fd, bool transfer_fh_ownership);
-
- // If the stream is redirected to a file, forget about the file and if
- // ownership of the file was transferred to this object, close the file.
- // If the stream is backed by a local cache, clear this cache.
- void
- Clear ();
+ // If the stream is redirected to a file, forget about the file and if
+ // ownership of the file was transferred to this object, close the file.
+ // If the stream is backed by a local cache, clear this cache.
+ void Clear();
protected:
- friend class SBAddress;
- friend class SBBlock;
- friend class SBBreakpoint;
- friend class SBBreakpointLocation;
- friend class SBCommandReturnObject;
- friend class SBCompileUnit;
- friend class SBData;
- friend class SBDebugger;
- friend class SBDeclaration;
- friend class SBEvent;
- friend class SBFileSpec;
- friend class SBFileSpecList;
- friend class SBFrame;
- friend class SBFunction;
- friend class SBInstruction;
- friend class SBInstructionList;
- friend class SBLineEntry;
- friend class SBMemoryRegionInfo;
- friend class SBModule;
- friend class SBModuleSpec;
- friend class SBModuleSpecList;
- friend class SBProcess;
- friend class SBSection;
- friend class SBSourceManager;
- friend class SBSymbol;
- friend class SBSymbolContext;
- friend class SBSymbolContextList;
- friend class SBTarget;
- friend class SBThread;
- friend class SBThreadPlan;
- friend class SBType;
- friend class SBTypeEnumMember;
- friend class SBTypeMemberFunction;
- friend class SBTypeMember;
- friend class SBValue;
- friend class SBWatchpoint;
-
- lldb_private::Stream *
- operator->();
-
- lldb_private::Stream *
- get();
-
- lldb_private::Stream &
- ref();
+ friend class SBAddress;
+ friend class SBBlock;
+ friend class SBBreakpoint;
+ friend class SBBreakpointLocation;
+ friend class SBCommandReturnObject;
+ friend class SBCompileUnit;
+ friend class SBData;
+ friend class SBDebugger;
+ friend class SBDeclaration;
+ friend class SBEvent;
+ friend class SBFileSpec;
+ friend class SBFileSpecList;
+ friend class SBFrame;
+ friend class SBFunction;
+ friend class SBInstruction;
+ friend class SBInstructionList;
+ friend class SBLineEntry;
+ friend class SBMemoryRegionInfo;
+ friend class SBModule;
+ friend class SBModuleSpec;
+ friend class SBModuleSpecList;
+ friend class SBProcess;
+ friend class SBSection;
+ friend class SBSourceManager;
+ friend class SBStructuredData;
+ friend class SBSymbol;
+ friend class SBSymbolContext;
+ friend class SBSymbolContextList;
+ friend class SBTarget;
+ friend class SBThread;
+ friend class SBThreadPlan;
+ friend class SBType;
+ friend class SBTypeEnumMember;
+ friend class SBTypeMemberFunction;
+ friend class SBTypeMember;
+ friend class SBValue;
+ friend class SBWatchpoint;
+
+ lldb_private::Stream *operator->();
+
+ lldb_private::Stream *get();
+
+ lldb_private::Stream &ref();
private:
-
- DISALLOW_COPY_AND_ASSIGN (SBStream);
- std::unique_ptr<lldb_private::Stream> m_opaque_ap;
- bool m_is_file;
+ DISALLOW_COPY_AND_ASSIGN(SBStream);
+ std::unique_ptr<lldb_private::Stream> m_opaque_ap;
+ bool m_is_file;
};
} // namespace lldb