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
96a38c93
Commit
96a38c93
authored
Mar 26, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Return proper null value when lookup_type fails.
parent
19805450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
dwarf.c
dlls/dbghelp/dwarf.c
+14
-12
No files found.
dlls/dbghelp/dwarf.c
View file @
96a38c93
...
...
@@ -941,22 +941,24 @@ static BOOL dwarf2_compute_location_attr(dwarf2_parse_context_t* ctx,
static
struct
symt
*
dwarf2_lookup_type
(
dwarf2_parse_context_t
*
ctx
,
const
dwarf2_debug_info_t
*
di
)
{
struct
attribute
attr
;
struct
attribute
attr
;
dwarf2_debug_info_t
*
type
;
if
(
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_type
,
&
attr
))
if
(
!
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_type
,
&
attr
))
return
NULL
;
if
(
!
(
type
=
sparse_array_find
(
&
ctx
->
debug_info_table
,
attr
.
u
.
uvalue
)))
{
dwarf2_debug_info_t
*
type
;
type
=
sparse_array_find
(
&
ctx
->
debug_info_table
,
attr
.
u
.
uvalue
);
if
(
!
type
)
FIXME
(
"Unable to find back reference to type %lx
\n
"
,
attr
.
u
.
uvalue
);
FIXME
(
"Unable to find back reference to type %lx
\n
"
,
attr
.
u
.
uvalue
);
return
NULL
;
}
if
(
!
type
->
symt
)
{
/* load the debug info entity */
dwarf2_load_one_entry
(
ctx
,
type
);
if
(
!
type
->
symt
)
{
/* load the debug info entity */
dwarf2_load_one_entry
(
ctx
,
type
);
}
return
type
->
symt
;
FIXME
(
"Unable to load forward reference for tag %lx
\n
"
,
type
->
abbrev
->
tag
);
}
return
NULL
;
return
type
->
symt
;
}
static
const
char
*
dwarf2_get_cpp_name
(
dwarf2_parse_context_t
*
ctx
,
dwarf2_debug_info_t
*
di
,
const
char
*
name
)
...
...
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