Skip to content

Commit

Permalink
Small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Sep 7, 2024
1 parent f44f477 commit d7dd64f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/windows_emulator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define GDT_LIMIT 0x1000
#define GDT_ENTRY_SIZE 0x8

bool use_gdb = true;
bool use_gdb = false;

struct breakpoint_key
{
Expand Down Expand Up @@ -745,9 +745,9 @@ namespace
{
frame.rip = pointers.ContextRecord->Rip;
frame.rsp = pointers.ContextRecord->Rsp;
frame.eflags = pointers.ContextRecord->EFlags;
frame.ss = pointers.ContextRecord->SegSs;
frame.cs = pointers.ContextRecord->SegCs;
frame.eflags = pointers.ContextRecord->EFlags;
});

printf("ContextRecord: %llX\n", context_record_obj.value());
Expand Down
2 changes: 1 addition & 1 deletion src/windows_emulator/module_mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ std::optional<mapped_binary> map_file(x64_emulator& emu, const std::filesystem::

auto binary = map_module(emu, data, file.generic_string());

//hook_exports(emu, binary, file);
hook_exports(emu, binary, file);

return binary;
}

0 comments on commit d7dd64f

Please sign in to comment.