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
c2d1d765
Commit
c2d1d765
authored
Sep 26, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/dwarf: Add support for DW_TAG_imported_unit.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5a1b8b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
dwarf.c
dlls/dbghelp/dwarf.c
+21
-0
No files found.
dlls/dbghelp/dwarf.c
View file @
c2d1d765
...
...
@@ -2305,6 +2305,24 @@ static void dwarf2_parse_namespace(dwarf2_debug_info_t* di)
}
}
static
void
dwarf2_parse_imported_unit
(
dwarf2_debug_info_t
*
di
)
{
struct
attribute
imp
;
if
(
di
->
symt
)
return
;
TRACE
(
"%s
\n
"
,
dwarf2_debug_di
(
di
));
if
(
dwarf2_find_attribute
(
di
,
DW_AT_import
,
&
imp
))
{
dwarf2_debug_info_t
*
jmp
=
dwarf2_jump_to_debug_info
(
&
imp
);
if
(
jmp
)
di
->
symt
=
jmp
->
symt
;
else
FIXME
(
"Couldn't load imported CU
\n
"
);
}
else
FIXME
(
"Couldn't find import attribute
\n
"
);
}
static
void
dwarf2_load_one_entry
(
dwarf2_debug_info_t
*
di
)
{
switch
(
di
->
abbrev
->
tag
)
...
...
@@ -2373,6 +2391,9 @@ static void dwarf2_load_one_entry(dwarf2_debug_info_t* di)
case
DW_TAG_subrange_type
:
dwarf2_parse_subrange_type
(
di
);
break
;
case
DW_TAG_imported_unit
:
dwarf2_parse_imported_unit
(
di
);
break
;
/* silence a couple of C++ defines */
case
DW_TAG_imported_module
:
case
DW_TAG_imported_declaration
:
...
...
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