Skip to content

Commit

Permalink
Fix GDC compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Aug 11, 2024
1 parent 781bd89 commit fe6fff9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adbg/debugger/memory.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ version (Windows) {
import core.sys.windows.winnt;
import adbg.include.windows.psapi_dyn;
} else version (Posix) {
import core.stdc.stdio : snprintf, sscanf;
import core.sys.posix.fcntl : open, O_RDWR;
import adbg.include.c.stdio : snprintf, sscanf;
import adbg.include.posix.ptrace;
import adbg.include.posix.unistd : sysconf, read, write, ssize_t, _SC_PAGESIZE;

Expand Down Expand Up @@ -571,6 +571,8 @@ LRETRY:
uint inode = void;

//TODO: Check for (deleted) column (last)
// NOTE: GDC (tested with 11.4) is likely getting the wrong types
// D definitions aliases size_t (%zx) to uint/ulong.
if (sscanf(line.ptr, "%zx-%zx %4s %x %x:%x %u %512s",
&range_start, &range_end,
perms.ptr, &offset,
Expand Down

0 comments on commit fe6fff9

Please sign in to comment.