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
e87f3dd5
Commit
e87f3dd5
authored
Sep 11, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/dwarf: Properly parse line number header for DWARF4 debug info.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e28ec5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dwarf.c
dlls/dbghelp/dwarf.c
+4
-2
No files found.
dlls/dbghelp/dwarf.c
View file @
e87f3dd5
...
...
@@ -2222,7 +2222,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
{
dwarf2_traverse_context_t
traverse
;
ULONG_PTR
length
;
unsigned
insn_size
,
default_stmt
;
unsigned
insn_size
,
version
,
default_stmt
;
unsigned
line_range
,
opcode_base
;
int
line_base
;
unsigned
char
offset_size
;
...
...
@@ -2256,9 +2256,11 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
WARN
(
"out of bounds header
\n
"
);
return
FALSE
;
}
dwarf2_parse_u2
(
&
traverse
);
/* version */
version
=
dwarf2_parse_u2
(
&
traverse
);
dwarf2_parse_offset
(
&
traverse
,
offset_size
);
/* header_len */
insn_size
=
dwarf2_parse_byte
(
&
traverse
);
if
(
version
>=
4
)
dwarf2_parse_byte
(
&
traverse
);
/* max_operations_per_instructions */
default_stmt
=
dwarf2_parse_byte
(
&
traverse
);
line_base
=
(
signed
char
)
dwarf2_parse_byte
(
&
traverse
);
line_range
=
dwarf2_parse_byte
(
&
traverse
);
...
...
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