
This is basically a proof-of-concept and starting point for having a testing-centric tool in LLDB. I'm sure this leaves a lot of room to be desired, but this at least allows us to have something to build on. Right now there is only one command, the `module-sections` command, and I created this command not because it was particularly special, but because it addressed an immediate use case and was extremely simple. Run the tool as `lldb-test module-sections <path-to-object>`. Feel free to add testing related stuff to your heart's content after this goes in. Implementing the commands themselves takes some work, but once they're there they can be reused without writing any code and result in very easy to use and maintain tests. Differential Revision: https://reviews.llvm.org/D40636 llvm-svn: 319504
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
//===-- SystemInitializerTest.h ---------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLDB_API_SYSTEM_INITIALIZER_TEST_H
|
|
#define LLDB_API_SYSTEM_INITIALIZER_TEST_H
|
|
|
|
#include "lldb/Initialization/SystemInitializerCommon.h"
|
|
|
|
namespace lldb_private {
|
|
//------------------------------------------------------------------
|
|
/// Initializes lldb.
|
|
///
|
|
/// This class is responsible for initializing all of lldb system
|
|
/// services needed to use the full LLDB application. This class is
|
|
/// not intended to be used externally, but is instead used
|
|
/// internally by SBDebugger to initialize the system.
|
|
//------------------------------------------------------------------
|
|
class SystemInitializerTest : public SystemInitializerCommon {
|
|
public:
|
|
SystemInitializerTest();
|
|
~SystemInitializerTest() override;
|
|
|
|
void Initialize() override;
|
|
void Terminate() override;
|
|
};
|
|
|
|
} // namespace lldb_private
|
|
|
|
#endif // LLDB_API_SYSTEM_INITIALIZER_FULL_H
|