]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/lldb/include/lldb/Core/StreamGDBRemote.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / tools / lldb / include / lldb / Core / StreamGDBRemote.h
1 //===-- StreamGDBRemote.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 #ifndef liblldb_StreamGDBRemote_h_
11 #define liblldb_StreamGDBRemote_h_
12
13 // C Includes
14 // C++ Includes
15
16 // Other libraries and framework includes
17 // Project includes
18
19 #include "lldb/Core/StreamString.h"
20
21 namespace lldb_private {
22     
23     class StreamGDBRemote : public StreamString
24     {
25         public:
26         StreamGDBRemote ();
27         
28         StreamGDBRemote (uint32_t flags,
29                          uint32_t addr_size,
30                          lldb::ByteOrder byte_order);
31         
32         virtual
33         ~StreamGDBRemote ();
34         
35         //------------------------------------------------------------------
36         /// Output a block of data to the stream performing GDB-remote escaping.
37         ///
38         /// @param[in] s
39         ///     A block of data.
40         ///
41         /// @param[in] src_len
42         ///     The amount of data to write.
43         ///
44         /// @return
45         ///     Number of bytes written.
46         //------------------------------------------------------------------
47         int
48         PutEscapedBytes (const void* s,
49                          size_t src_len);
50     };
51
52 } // namespace lldb_private
53
54 #endif  // liblldb_StreamGDBRemote_h_