Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6c91e61c
Commit
6c91e61c
authored
Jul 02, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Correct mapping read/write/execute information.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5d8bad57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gdbproxy.c
programs/winedbg/gdbproxy.c
+2
-2
info.c
programs/winedbg/info.c
+2
-2
No files found.
programs/winedbg/gdbproxy.c
View file @
6c91e61c
...
...
@@ -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
...
...
programs/winedbg/info.c
View file @
6c91e61c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment