llvm/lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp

//===-- MessageObjects.cpp ------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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::ThreadInfo(StringRef name, StringRef reason, RegisterMap registers,
                       unsigned int)
    :{}

const RegisterValue *ThreadInfo::ReadRegister(unsigned int Id) const {}

//====== JThreadsInfo ==========================================================

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) {}

//====== StopReply =============================================================
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) {}

//====== Globals ===============================================================
Expected<StringMap<StringRef>> SplitUniquePairList(StringRef caller,
                                                   StringRef str) {}

StringMap<SmallVector<StringRef, 2>> SplitPairList(StringRef str) {}
} // namespace llgs_tests

std::ostream &lldb_private::operator<<(std::ostream &OS,
                                       const RegisterValue &RegVal) {}