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
7f2eb083
Commit
7f2eb083
authored
Sep 08, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/dwarf: Initialize module's word_size at module load time.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7bb85884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
dwarf.c
dlls/dbghelp/dwarf.c
+1
-6
No files found.
dlls/dbghelp/dwarf.c
View file @
7f2eb083
...
...
@@ -2409,8 +2409,6 @@ static BOOL dwarf2_parse_compilation_unit(const dwarf2_section_t* sections,
return
FALSE
;
}
module
->
format_info
[
DFI_DWARF
]
->
u
.
dwarf2_info
->
word_size
=
ctx
.
head
.
word_size
;
pool_init
(
&
ctx
.
pool
,
65536
);
ctx
.
sections
=
sections
;
ctx
.
section
=
section_debug
;
...
...
@@ -3570,7 +3568,7 @@ BOOL dwarf2_parse(struct module* module, ULONG_PTR load_offset,
dwarf2_modfmt
->
remove
=
dwarf2_module_remove
;
dwarf2_modfmt
->
loc_compute
=
dwarf2_location_compute
;
dwarf2_modfmt
->
u
.
dwarf2_info
=
(
struct
dwarf2_module_info_s
*
)(
dwarf2_modfmt
+
1
);
dwarf2_modfmt
->
u
.
dwarf2_info
->
word_size
=
0
;
/* will be correctly set later on
*/
dwarf2_modfmt
->
u
.
dwarf2_info
->
word_size
=
fmap
->
addr_size
/
8
;
/* set the word_size for eh_frame parsing
*/
dwarf2_modfmt
->
module
->
format_info
[
DFI_DWARF
]
=
dwarf2_modfmt
;
/* As we'll need later some sections' content, we won't unmap these
...
...
@@ -3594,9 +3592,6 @@ BOOL dwarf2_parse(struct module* module, ULONG_PTR load_offset,
dwarf2_modfmt
->
module
->
module
.
SourceIndexed
=
TRUE
;
dwarf2_modfmt
->
module
->
module
.
Publics
=
TRUE
;
/* set the word_size for eh_frame parsing */
dwarf2_modfmt
->
u
.
dwarf2_info
->
word_size
=
fmap
->
addr_size
/
8
;
leave:
dwarf2_fini_section
(
&
section
[
section_debug
]);
dwarf2_fini_section
(
&
section
[
section_abbrev
]);
...
...
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