Skip to content

Commit

Permalink
Merge pull request FEX-Emu#3446 from neobrain/fix_gdb_source_map
Browse files Browse the repository at this point in the history
Syscalls: Fix SourcecodeMap generation for GDB JIT integration
  • Loading branch information
Sonicadvance1 authored Feb 24, 2024
2 parents 9b93495 + 3425b07 commit 7e2f20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ fextl::unique_ptr<FEXCore::HLE::SourcecodeMap> SyscallHandler::GenerateMap(const
fextl::istringstream Stream(SourceData);

constexpr int USER_PERMS = S_IRWXU | S_IRWXG | S_IRWXO;
int IndexStream = ::open(GuestSourceFile.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, USER_PERMS);
int IndexStream = ::open(GuestIndexFile.c_str(), O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, USER_PERMS);

if (IndexStream == -1) {
LogMan::Msg::DFmt("GenerateMap: Failed to open '{}' for writing", GuestIndexFile);
Expand Down

0 comments on commit 7e2f20c

Please sign in to comment.