1 //===-- StreamGDBRemote.h ----------------------------------------*- C++-*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_StreamGDBRemote_h_
10 #define liblldb_StreamGDBRemote_h_
12 #include "lldb/Utility/StreamString.h"
13 #include "lldb/lldb-enumerations.h"
18 namespace lldb_private {
20 class StreamGDBRemote : public StreamString {
24 StreamGDBRemote(uint32_t flags, uint32_t addr_size,
25 lldb::ByteOrder byte_order);
27 ~StreamGDBRemote() override;
29 /// Output a block of data to the stream performing GDB-remote escaping.
34 /// \param[in] src_len
35 /// The amount of data to write.
38 /// Number of bytes written.
39 // TODO: Convert this function to take ArrayRef<uint8_t>
40 int PutEscapedBytes(const void *s, size_t src_len);
43 } // namespace lldb_private
45 #endif // liblldb_StreamGDBRemote_h_