LLDB
mainline
llvm-project
lldb
source
Host
common
JSONTransport.cpp
Go to the documentation of this file.
1
//===-- JSONTransport.cpp -------------------------------------------------===//
2
//
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
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
lldb/Host/JSONTransport.h
"
10
#include "
lldb/Utility/Log.h
"
11
#include "
lldb/Utility/Status.h
"
12
#include "llvm/ADT/StringExtras.h"
13
#include "llvm/Support/raw_ostream.h"
14
#include <string>
15
16
using namespace
llvm
;
17
using namespace
lldb
;
18
using namespace
lldb_private
;
19
20
char
TransportUnhandledContentsError::ID
;
21
22
TransportUnhandledContentsError::TransportUnhandledContentsError
(
23
std::string unhandled_contents)
24
:
m_unhandled_contents
(unhandled_contents) {}
25
26
void
TransportUnhandledContentsError::log
(llvm::raw_ostream &
OS
)
const
{
27
OS
<<
"transport EOF with unhandled contents: '"
<<
m_unhandled_contents
28
<<
"'"
;
29
}
30
std::error_code
TransportUnhandledContentsError::convertToErrorCode
()
const
{
31
return
std::make_error_code(std::errc::bad_message);
32
}
JSONTransport.h
Log.h
Status.h
lldb_private::TransportUnhandledContentsError::log
void log(llvm::raw_ostream &OS) const override
Definition
JSONTransport.cpp:26
lldb_private::TransportUnhandledContentsError::TransportUnhandledContentsError
TransportUnhandledContentsError(std::string unhandled_contents)
Definition
JSONTransport.cpp:22
lldb_private::TransportUnhandledContentsError::convertToErrorCode
std::error_code convertToErrorCode() const override
Definition
JSONTransport.cpp:30
lldb_private::TransportUnhandledContentsError::m_unhandled_contents
std::string m_unhandled_contents
Definition
JSONTransport.h:50
lldb_private::TransportUnhandledContentsError::ID
static char ID
Definition
JSONTransport.h:38
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::LLDBLog::OS
@ OS
Definition
LLDBLog.h:36
lldb
Definition
SBAddress.h:15
llvm
Definition
Debugger.h:58
Generated on
for LLDB by
1.14.0