Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
adda4859
Commit
adda4859
authored
Jul 24, 2008
by
John Reiser
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Tell valgrind to load the .pdb debugging info for the module that was just loaded.
parent
d6f46911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
virtual.c
dlls/ntdll/virtual.c
+7
-3
No files found.
dlls/ntdll/virtual.c
View file @
adda4859
...
...
@@ -41,8 +41,8 @@
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
#ifdef HAVE_VALGRIND_
MEMCHECK
_H
# include <valgrind/
memcheck
.h>
#ifdef HAVE_VALGRIND_
VALGRIND
_H
# include <valgrind/
valgrind
.h>
#endif
#define NONAMELESSUNION
...
...
@@ -898,6 +898,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
struct
stat
st
;
struct
file_view
*
view
=
NULL
;
char
*
ptr
,
*
header_end
;
int
delta
=
0
;
/* zero-map the whole range */
...
...
@@ -1088,7 +1089,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
((
nt
->
FileHeader
.
Characteristics
&
IMAGE_FILE_DLL
)
||
!
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
)
)
{
int
delta
=
ptr
-
base
;
IMAGE_BASE_RELOCATION
*
rel
,
*
end
;
const
IMAGE_DATA_DIRECTORY
*
relocs
;
...
...
@@ -1106,6 +1106,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
relocs
=
&
nt
->
OptionalHeader
.
DataDirectory
[
IMAGE_DIRECTORY_ENTRY_BASERELOC
];
rel
=
(
IMAGE_BASE_RELOCATION
*
)(
ptr
+
relocs
->
VirtualAddress
);
end
=
(
IMAGE_BASE_RELOCATION
*
)(
ptr
+
relocs
->
VirtualAddress
+
relocs
->
Size
);
delta
=
ptr
-
base
;
while
(
rel
<=
end
-
1
&&
rel
->
SizeOfBlock
)
{
...
...
@@ -1154,6 +1155,9 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
server_leave_uninterrupted_section
(
&
csVirtual
,
&
sigset
);
*
addr_ptr
=
ptr
;
#ifdef VALGRIND_LOAD_PDB_DEBUGINFO
VALGRIND_LOAD_PDB_DEBUGINFO
(
fd
,
ptr
,
total_size
,
delta
);
#endif
return
STATUS_SUCCESS
;
error:
...
...
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