LLDB mainline
GDBRemoteCommunicationServerLLGS.cpp File Reference
#include <cerrno>
#include "lldb/Host/Config.h"
#include <chrono>
#include <cstring>
#include <limits>
#include <optional>
#include <thread>
#include "GDBRemoteCommunicationServerLLGS.h"
#include "lldb/Host/ConnectionFileDescriptor.h"
#include "lldb/Host/Debug.h"
#include "lldb/Host/File.h"
#include "lldb/Host/FileAction.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/PosixApi.h"
#include "lldb/Host/Socket.h"
#include "lldb/Host/common/NativeProcessProtocol.h"
#include "lldb/Host/common/NativeRegisterContext.h"
#include "lldb/Host/common/NativeThreadProtocol.h"
#include "lldb/Target/MemoryRegionInfo.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/DataBuffer.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/GDBRemote.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/UnimplementedError.h"
#include "lldb/Utility/UriParser.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/TargetParser/Triple.h"
#include "ProcessGDBRemote.h"
#include "ProcessGDBRemoteLog.h"
#include "lldb/Utility/StringExtractorGDBRemote.h"

Go to the source code of this file.

Functions

static void AppendHexValue (StreamString &response, const uint8_t *buf, uint32_t buf_size, bool swap)
static llvm::StringRef GetEncodingNameOrEmpty (const RegisterInfo &reg_info)
static llvm::StringRef GetFormatNameOrEmpty (const RegisterInfo &reg_info)
static llvm::StringRef GetKindGenericOrEmpty (const RegisterInfo &reg_info)
static void CollectRegNums (const uint32_t *reg_num, StreamString &response, bool usehex)
static void WriteRegisterValueInHexFixedWidth (StreamString &response, NativeRegisterContext &reg_ctx, const RegisterInfo &reg_info, const RegisterValue *reg_value_p, lldb::ByteOrder byte_order)
static std::optional< json::Object > GetRegistersAsJSON (NativeThreadProtocol &thread)
static const char * GetStopReasonString (StopReason stop_reason)
static llvm::Expected< json::Array > GetJSONThreadsInfo (NativeProcessProtocol &process, bool abridged)
static bool ResumeActionListStopsAllThreads (ResumeActionList &actions)

Function Documentation

◆ AppendHexValue()

void AppendHexValue ( StreamString & response,
const uint8_t * buf,
uint32_t buf_size,
bool swap )
static

◆ CollectRegNums()

◆ GetEncodingNameOrEmpty()

◆ GetFormatNameOrEmpty()

◆ GetJSONThreadsInfo()

◆ GetKindGenericOrEmpty()

◆ GetRegistersAsJSON()

◆ GetStopReasonString()

◆ ResumeActionListStopsAllThreads()

◆ WriteRegisterValueInHexFixedWidth()