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
820acf09
Commit
820acf09
authored
Aug 03, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Properly handle variable with const value (ie without location) in dwarf code.
parent
2f407274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
dwarf.c
dlls/dbghelp/dwarf.c
+7
-3
No files found.
dlls/dbghelp/dwarf.c
View file @
820acf09
...
...
@@ -1050,20 +1050,20 @@ static void dwarf2_parse_variable(dwarf2_subprogram_t* subpgm,
dwarf2_debug_info_t
*
di
)
{
struct
symt
*
param_type
;
union
attribute
loc
;
union
attribute
name
,
loc
,
value
;
BOOL
is_pmt
=
di
->
abbrev
->
tag
==
DW_TAG_formal_parameter
;
TRACE
(
"%s, for %s
\n
"
,
dwarf2_debug_ctx
(
subpgm
->
ctx
),
dwarf2_debug_di
(
di
));
param_type
=
dwarf2_lookup_type
(
subpgm
->
ctx
,
di
);
if
(
dwarf2_find_attribute
(
di
,
DW_AT_location
,
&
loc
))
dwarf2_find_name
(
subpgm
->
ctx
,
di
,
&
name
,
"parameter"
);
if
(
dwarf2_find_attribute
(
di
,
DW_AT_location
,
&
loc
)
&&
loc
.
block
)
{
union
attribute
name
;
union
attribute
ext
;
long
offset
;
int
in_reg
;
dwarf2_find_name
(
subpgm
->
ctx
,
di
,
&
name
,
"parameter"
);
offset
=
dwarf2_compute_location
(
subpgm
->
ctx
,
loc
.
block
,
&
in_reg
);
TRACE
(
"found parameter %s/%ld (reg=%d) at %s
\n
"
,
name
.
string
,
offset
,
in_reg
,
dwarf2_debug_ctx
(
subpgm
->
ctx
));
...
...
@@ -1094,6 +1094,10 @@ static void dwarf2_parse_variable(dwarf2_subprogram_t* subpgm,
break
;
}
}
if
(
dwarf2_find_attribute
(
di
,
DW_AT_const_value
,
&
value
))
{
FIXME
(
"NIY (const value %08lx for %s
\n
"
,
value
.
uvalue
,
name
.
string
);
}
if
(
is_pmt
&&
subpgm
->
func
&&
subpgm
->
func
->
type
)
symt_add_function_signature_parameter
(
subpgm
->
ctx
->
module
,
(
struct
symt_function_signature
*
)
subpgm
->
func
->
type
,
...
...
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