#include "Plugins/Process/elf-core/ThreadElfCore.h"
#include "Plugins/Platform/Linux/PlatformLinux.h"
#include "TestingSupport/TestUtilities.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/Listener.h"
#include "llvm/TargetParser/Triple.h"
#include "gtest/gtest.h"
#include <memory>
#include <mutex>
#include <sys/resource.h>
#include <unistd.h>
#ifndef HAVE_GETTID
#include <sys/syscall.h>
pid_t gettid() { return ((pid_t)syscall(SYS_gettid)); }
#endif
usingnamespacelldb_private;
namespace {
struct ElfCoreTest : public testing::Test { … };
struct DummyProcess : public Process { … };
struct DummyThread : public Thread { … };
lldb::TargetSP CreateTarget(lldb::DebuggerSP &debugger_sp, ArchSpec &arch) { … }
lldb::ThreadSP CreateThread(lldb::ProcessSP &process_sp) { … }
}
TEST_F(ElfCoreTest, PopulatePrpsInfoTest) { … }
TEST_F(ElfCoreTest, PopulatePrStatusTest) { … }