LLDB  mainline
Functions
GDBRemoteCommunicationReplayServer.cpp File Reference
#include <errno.h>
#include "lldb/Host/Config.h"
#include "llvm/ADT/ScopeExit.h"
#include "GDBRemoteCommunicationReplayServer.h"
#include "ProcessGDBRemoteLog.h"
#include <cstring>
#include "lldb/Host/ThreadLauncher.h"
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/Event.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/StringExtractorGDBRemote.h"
Include dependency graph for GDBRemoteCommunicationReplayServer.cpp:

Go to the source code of this file.

Functions

static bool unexpected (llvm::StringRef expected, llvm::StringRef actual)
 Check if the given expected packet matches the actual packet. More...
 
static bool skip (llvm::StringRef data)
 Check if we should reply to the given packet. More...
 

Function Documentation

◆ skip()

static bool skip ( llvm::StringRef  data)
static

Check if we should reply to the given packet.

Don't 't reply to ^C. We need this because of stop reply packets, which are only returned when the target halts. Reproducers synchronize these 'asynchronous' replies, by recording them as a regular replies to the previous packet (e.g. vCont). As a result, we should ignore real asynchronous requests.

Definition at line 54 of file GDBRemoteCommunicationReplayServer.cpp.

Referenced by lldb_private::Target::CreateFuncRegexBreakpoint(), lldb_private::process_gdb_remote::GDBRemoteCommunicationReplayServer::GetPacketAndSendResponse(), and DWARFASTParserClang::ParseChildParameters().

◆ unexpected()

static bool unexpected ( llvm::StringRef  expected,
llvm::StringRef  actual 
)
static

Check if the given expected packet matches the actual packet.

Definition at line 35 of file GDBRemoteCommunicationReplayServer.cpp.

Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationReplayServer::GetPacketAndSendResponse().