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
3e6920d7
Commit
3e6920d7
authored
Mar 18, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Now that we can keep ELF sections around, don't copy the loclist…
dbghelp: Now that we can keep ELF sections around, don't copy the loclist section, just don't unmap it.
parent
2d8c7883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
dwarf.c
dlls/dbghelp/dwarf.c
+6
-9
No files found.
dlls/dbghelp/dwarf.c
View file @
3e6920d7
...
...
@@ -2376,7 +2376,6 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
struct
image_file_map
*
fmap
)
{
dwarf2_section_t
section
[
section_max
];
unsigned
char
*
ptr
;
dwarf2_traverse_context_t
mod_ctx
;
struct
image_section_map
debug_sect
,
debug_str_sect
,
debug_abbrev_sect
,
debug_line_sect
,
debug_loclist_sect
;
...
...
@@ -2419,17 +2418,15 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
if
(
image_get_map_size
(
&
debug_loclist_sect
))
{
/* initialize the dwarf2 specific info block for this module.
* As we'll need later
on the .debug_loc section content, we copy it in
*
the module structure for later reuse
* As we'll need later
the .debug_loc section content, we won't unmap this
*
section upon existing this function
*/
module
->
dwarf2_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
module
->
dwarf2_info
)
+
image_get_map_size
(
&
debug_loclist_sect
));
module
->
dwarf2_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
module
->
dwarf2_info
));
if
(
!
module
->
dwarf2_info
)
return
FALSE
;
ptr
=
(
unsigned
char
*
)(
module
->
dwarf2_info
+
1
);
memcpy
(
ptr
,
image_map_section
(
&
debug_loclist_sect
),
image_get_map_size
(
&
debug_loclist_sect
));
module
->
dwarf2_info
->
debug_loc
.
address
=
ptr
;
module
->
dwarf2_info
->
debug_loc
.
address
=
(
const
BYTE
*
)
image_map_section
(
&
debug_loclist_sect
);
module
->
dwarf2_info
->
debug_loc
.
size
=
image_get_map_size
(
&
debug_loclist_sect
);
}
else
image_unmap_section
(
&
debug_loclist_sect
);
while
(
mod_ctx
.
data
<
mod_ctx
.
end_data
)
{
...
...
@@ -2448,6 +2445,6 @@ leave:
image_unmap_section
(
&
debug_abbrev_sect
);
image_unmap_section
(
&
debug_str_sect
);
image_unmap_section
(
&
debug_line_sect
);
image_unmap_section
(
&
debug_loclist_sect
);
return
ret
;
}
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