#include "MessageObjects.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/StringExtractor.h"
#include "llvm/ADT/StringExtras.h"
#include "gtest/gtest.h"
usingnamespacelldb_private;
usingnamespacelldb;
usingnamespacellvm;
namespace llgs_tests {
Expected<ProcessInfo> ProcessInfo::create(StringRef response) { … }
lldb::pid_t ProcessInfo::GetPid() const { … }
llvm::endianness ProcessInfo::GetEndian() const { … }
ThreadInfo::ThreadInfo(StringRef name, StringRef reason, RegisterMap registers,
unsigned int)
: … { … }
const RegisterValue *ThreadInfo::ReadRegister(unsigned int Id) const { … }
Expected<RegisterMap>
JThreadsInfo::parseRegisters(const StructuredData::Dictionary &Dict,
ArrayRef<RegisterInfo> RegInfos) { … }
Expected<JThreadsInfo> JThreadsInfo::create(StringRef Response,
ArrayRef<RegisterInfo> RegInfos) { … }
const ThreadInfoMap &JThreadsInfo::GetThreadInfos() const { … }
Expected<RegisterInfo> RegisterInfoParser::create(StringRef Response) { … }
Expected<RegisterValue> parseRegisterValue(const RegisterInfo &Info,
StringRef HexValue,
llvm::endianness Endian,
bool ZeroPad) { … }
Expected<std::unique_ptr<StopReply>>
StopReply::create(StringRef Response, llvm::endianness Endian,
ArrayRef<RegisterInfo> RegInfos) { … }
Expected<RegisterMap> StopReplyStop::parseRegisters(
const StringMap<SmallVector<StringRef, 2>> &Elements,
llvm::endianness Endian, ArrayRef<lldb_private::RegisterInfo> RegInfos) { … }
Expected<std::unique_ptr<StopReplyStop>>
StopReplyStop::create(StringRef Response, llvm::endianness Endian,
ArrayRef<RegisterInfo> RegInfos) { … }
Expected<std::unique_ptr<StopReplyExit>>
StopReplyExit::create(StringRef Response) { … }
Expected<StringMap<StringRef>> SplitUniquePairList(StringRef caller,
StringRef str) { … }
StringMap<SmallVector<StringRef, 2>> SplitPairList(StringRef str) { … }
}
std::ostream &lldb_private::operator<<(std::ostream &OS,
const RegisterValue &RegVal) { … }