LLDB mainline
Macros | Functions
StringExtractorGDBRemote.cpp File Reference
#include "lldb/Utility/StringExtractorGDBRemote.h"
#include <cctype>
#include <cstring>
#include <optional>

Go to the source code of this file.

Macros

#define PACKET_MATCHES(s)    ((packet_size == (sizeof(s) - 1)) && (strcmp((packet_cstr), (s)) == 0))
 
#define PACKET_STARTS_WITH(s)
 

Functions

static bool OKErrorNotSupportedResponseValidator (void *, const StringExtractorGDBRemote &response)
 
static bool JSONResponseValidator (void *, const StringExtractorGDBRemote &response)
 
static bool ASCIIHexBytesResponseValidator (void *, const StringExtractorGDBRemote &response)
 

Macro Definition Documentation

◆ PACKET_MATCHES

#define PACKET_MATCHES (   s)     ((packet_size == (sizeof(s) - 1)) && (strcmp((packet_cstr), (s)) == 0))

◆ PACKET_STARTS_WITH

#define PACKET_STARTS_WITH (   s)
Value:
((packet_size >= (sizeof(s) - 1)) && \
::strncmp(packet_cstr, s, (sizeof(s) - 1)) == 0)

Function Documentation

◆ ASCIIHexBytesResponseValidator()

static bool ASCIIHexBytesResponseValidator ( void *  ,
const StringExtractorGDBRemote response 
)
static

◆ JSONResponseValidator()

static bool JSONResponseValidator ( void *  ,
const StringExtractorGDBRemote response 
)
static

◆ OKErrorNotSupportedResponseValidator()

static bool OKErrorNotSupportedResponseValidator ( void *  ,
const StringExtractorGDBRemote response 
)
static