This commit is contained in:
T0b1
2023-05-31 23:14:05 +02:00
commit d4bf6731a3
14 changed files with 548 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include "backend/debug_backend.h"
#include <lldb/API/SBDebugger.h>
#include <lldb/API/SBTarget.h>
#include <lldb/API/SBProcess.h>
#include <string>
namespace dbgui::backend {
struct LLDBBackend : Backend {
// TODO: source_init_file: false
LLDBBackend(std::string filename);
virtual ~LLDBBackend();
void start() override;
private:
std::string _filename;
lldb::SBDebugger _instance;
lldb::SBTarget _target;
std::optional<lldb::SBProcess> _process;
};
}