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
3ced7b8f
Commit
3ced7b8f
authored
Jun 26, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Ensure we can try to load COFF symbols if none is found in other debug formats.
parent
d97e6a47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
dwarf.c
dlls/dbghelp/dwarf.c
+3
-4
pe_module.c
dlls/dbghelp/pe_module.c
+2
-2
No files found.
dlls/dbghelp/dwarf.c
View file @
3ced7b8f
...
...
@@ -3077,10 +3077,9 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
struct
module_format
*
dwarf2_modfmt
;
if
(
!
dwarf2_init_section
(
&
section
[
section_debug
],
fmap
,
".debug_info"
,
&
debug_sect
))
{
/* no Dwarf debug info here, so there's no error */
return
TRUE
;
}
/* no Dwarf debug info here */
return
FALSE
;
dwarf2_init_section
(
&
section
[
section_abbrev
],
fmap
,
".debug_abbrev"
,
&
debug_abbrev_sect
);
dwarf2_init_section
(
&
section
[
section_string
],
fmap
,
".debug_str"
,
&
debug_str_sect
);
dwarf2_init_section
(
&
section
[
section_line
],
fmap
,
".debug_line"
,
&
debug_line_sect
);
...
...
dlls/dbghelp/pe_module.c
View file @
3ced7b8f
...
...
@@ -183,8 +183,8 @@ static BOOL pe_is_valid_pointer_table(const IMAGE_NT_HEADERS* nthdr, const void*
/* is the iSym table inside file size ? (including first DWORD of string table, which is its size) */
offset
=
(
DWORD64
)
nthdr
->
FileHeader
.
PointerToSymbolTable
;
offset
+=
(
DWORD64
)
nthdr
->
FileHeader
.
NumberOfSymbols
*
sizeof
(
IMAGE_SYMBOL
)
+
sizeof
(
DWORD
)
;
if
(
offset
>
sz
)
return
FALSE
;
offset
+=
(
DWORD64
)
nthdr
->
FileHeader
.
NumberOfSymbols
*
sizeof
(
IMAGE_SYMBOL
);
if
(
offset
+
sizeof
(
DWORD
)
>
sz
)
return
FALSE
;
/* is string table (following iSym table) inside file size ? */
offset
+=
*
(
DWORD
*
)((
const
char
*
)
mapping
+
offset
);
return
offset
<=
sz
;
...
...
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