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
be7c95a3
Commit
be7c95a3
authored
Oct 04, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the loading .dbg files by no longer using RtlImageNtHeader which
would return NULL and using looking at the IMAGE_SEPARATE_DEBUG_HEADER directly instead.
parent
0d2cb299
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
msc.c
dlls/dbghelp/msc.c
+4
-3
pe_module.c
dlls/dbghelp/pe_module.c
+12
-7
No files found.
dlls/dbghelp/msc.c
View file @
be7c95a3
...
...
@@ -2997,11 +2997,12 @@ BOOL pe_load_debug_directory(const struct process* pcs, struct module* module,
BOOL
ret
;
int
i
;
struct
msc_debug_info
msc_dbg
;
const
IMAGE_
NT_HEADERS
*
nth
=
RtlImageNtHeader
((
void
*
)
mapping
)
;
const
IMAGE_
SEPARATE_DEBUG_HEADER
*
dbg_hdr
=
(
const
IMAGE_SEPARATE_DEBUG_HEADER
*
)
mapping
;
msc_dbg
.
module
=
module
;
msc_dbg
.
nsect
=
nth
->
FileHeader
.
NumberOfSections
;
msc_dbg
.
sectp
=
(
const
IMAGE_SECTION_HEADER
*
)((
const
char
*
)
&
nth
->
OptionalHeader
+
nth
->
FileHeader
.
SizeOfOptionalHeader
);
msc_dbg
.
nsect
=
dbg_hdr
->
NumberOfSections
;
/* section headers come immediately after debug header */
msc_dbg
.
sectp
=
(
const
IMAGE_SECTION_HEADER
*
)(
dbg_hdr
+
1
);
msc_dbg
.
nomap
=
0
;
msc_dbg
.
omapp
=
NULL
;
...
...
dlls/dbghelp/pe_module.c
View file @
be7c95a3
...
...
@@ -115,13 +115,18 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
* which have incorrect timestamps.
*/
}
dbg
=
(
const
IMAGE_DEBUG_DIRECTORY
*
)
(
dbg_mapping
+
sizeof
(
*
hdr
)
+
hdr
->
NumberOfSections
*
sizeof
(
IMAGE_SECTION_HEADER
)
+
hdr
->
ExportedNamesSize
);
ret
=
pe_load_debug_directory
(
pcs
,
module
,
dbg_mapping
,
dbg
,
hdr
->
DebugDirectorySize
/
sizeof
(
*
dbg
));
if
(
hdr
->
Signature
==
IMAGE_SEPARATE_DEBUG_SIGNATURE
)
{
dbg
=
(
const
IMAGE_DEBUG_DIRECTORY
*
)
(
dbg_mapping
+
sizeof
(
*
hdr
)
+
hdr
->
NumberOfSections
*
sizeof
(
IMAGE_SECTION_HEADER
)
+
hdr
->
ExportedNamesSize
);
ret
=
pe_load_debug_directory
(
pcs
,
module
,
dbg_mapping
,
dbg
,
hdr
->
DebugDirectorySize
/
sizeof
(
*
dbg
));
}
else
ERR
(
"Wrong signature in .DBG file %s
\n
"
,
debugstr_a
(
tmp
));
}
else
WINE_ERR
(
"-Unable to peruse .DBG file %s (%s)
\n
"
,
dbg_name
,
debugstr_a
(
tmp
));
...
...
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