mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-24 22:21:03 +00:00
Cleanup gdb stub and module mapping
This commit is contained in:
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user