Cleanup gdb stub and module mapping

This commit is contained in:
momo5502
2024-09-09 12:14:22 +02:00
parent 9472ee4feb
commit 73b15557e8
13 changed files with 444 additions and 381 deletions

View File

@@ -2,26 +2,7 @@
#include "emulator_utils.hpp"
#include "handles.hpp"
struct exported_symbol
{
std::string name{};
uint64_t ordinal{};
uint64_t rva{};
uint64_t address{};
};
using exported_symbols = std::vector<exported_symbol>;
struct mapped_binary
{
std::filesystem::path path{};
std::string name{};
uint64_t image_base{};
uint64_t size_of_image{};
uint64_t entry_point{};
exported_symbols exports{};
std::unordered_map<uint64_t, std::string> export_remap{};
};
#include "module/module_manager.hpp"
struct event
{
@@ -54,10 +35,10 @@ struct process_context
emulator_object<RTL_USER_PROCESS_PARAMETERS> process_params{};
emulator_object<KUSER_SHARED_DATA> kusd{};
std::map<uint64_t, std::unique_ptr<mapped_binary>> mapped_binaries{};
module_manager module_manager{};
mapped_binary* executable{};
mapped_binary* ntdll{};
mapped_module* executable{};
mapped_module* ntdll{};
handle_store<handle_types::event, event> events{};
handle_store<handle_types::file, file> files{};