winedbg: Correct mapping read/write/execute information.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5d8bad570d
commit
6c91e61c40
|
@ -1452,13 +1452,13 @@ static void packet_query_monitor_mem(struct gdb_context* gdbctx, int len, const
|
|||
}
|
||||
memset(prot, ' ' , sizeof(prot)-1);
|
||||
prot[sizeof(prot)-1] = '\0';
|
||||
if (mbi.AllocationProtect & (PAGE_READONLY|PAGE_READWRITE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE))
|
||||
if (mbi.AllocationProtect & (PAGE_READONLY|PAGE_READWRITE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_WRITECOPY|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[0] = 'R';
|
||||
if (mbi.AllocationProtect & (PAGE_READWRITE|PAGE_EXECUTE_READWRITE))
|
||||
prot[1] = 'W';
|
||||
if (mbi.AllocationProtect & (PAGE_WRITECOPY|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[1] = 'C';
|
||||
if (mbi.AllocationProtect & (PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE))
|
||||
if (mbi.AllocationProtect & (PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[2] = 'X';
|
||||
}
|
||||
else
|
||||
|
|
|
@ -769,13 +769,13 @@ void info_win32_virtual(DWORD pid)
|
|||
}
|
||||
memset(prot, ' ' , sizeof(prot) - 1);
|
||||
prot[sizeof(prot) - 1] = '\0';
|
||||
if (mbi.AllocationProtect & (PAGE_READONLY|PAGE_READWRITE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE))
|
||||
if (mbi.AllocationProtect & (PAGE_READONLY|PAGE_READWRITE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_WRITECOPY|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[0] = 'R';
|
||||
if (mbi.AllocationProtect & (PAGE_READWRITE|PAGE_EXECUTE_READWRITE))
|
||||
prot[1] = 'W';
|
||||
if (mbi.AllocationProtect & (PAGE_WRITECOPY|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[1] = 'C';
|
||||
if (mbi.AllocationProtect & (PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE))
|
||||
if (mbi.AllocationProtect & (PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY))
|
||||
prot[2] = 'X';
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue