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
a5293895
Commit
a5293895
authored
Mar 27, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: In dwarf parsing, correctly handle the DW_OP_regx option.
parent
6a6edcd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
dwarf.c
dlls/dbghelp/dwarf.c
+10
-7
No files found.
dlls/dbghelp/dwarf.c
View file @
a5293895
...
...
@@ -690,7 +690,6 @@ compute_location(dwarf2_traverse_context_t* ctx, struct location* loc,
}
stack
[
++
stk
]
=
dwarf2_leb128_as_signed
(
ctx
);
loc
->
kind
=
loc_regrel
;
break
;
}
else
switch
(
op
)
{
...
...
@@ -736,18 +735,22 @@ compute_location(dwarf2_traverse_context_t* ctx, struct location* loc,
case
DW_OP_skip
:
tmp
=
dwarf2_parse_u2
(
ctx
);
ctx
->
data
+=
tmp
;
break
;
case
DW_OP_bra
:
tmp
=
dwarf2_parse_u2
(
ctx
);
if
(
!
stack
[
stk
--
])
ctx
->
data
+=
tmp
;
break
;
case
DW_OP_regx
:
if
(
loc
->
reg
!=
Wine_DW_no_register
)
FIXME
(
"Only supporting one regx
\n
"
);
loc
->
reg
=
dwarf2_map_register
(
dwarf2_leb128_as_unsigned
(
ctx
));
tmp
=
dwarf2_leb128_as_unsigned
(
ctx
);
if
(
!
piece_found
)
{
if
(
loc
->
reg
!=
Wine_DW_no_register
)
FIXME
(
"Only supporting one reg
\n
"
);
loc
->
reg
=
dwarf2_map_register
(
tmp
);
}
loc
->
kind
=
loc_register
;
break
;
case
DW_OP_bregx
:
tmp
=
dwarf2_leb128_as_unsigned
(
ctx
);
ctx
->
data
++
;
if
(
loc
->
reg
!=
Wine_DW_no_register
)
FIXME
(
"Only supporting one regx
\n
"
);
loc
->
reg
=
dwarf2_map_register
(
tmp
)
+
dwarf2_leb128_as_signed
(
ctx
);
loc
->
kind
=
loc_register
;
loc
->
reg
=
dwarf2_map_register
(
tmp
);
stack
[
++
stk
]
=
dwarf2_leb128_as_signed
(
ctx
);
loc
->
kind
=
loc_regrel
;
break
;
case
DW_OP_fbreg
:
if
(
loc
->
reg
!=
Wine_DW_no_register
)
...
...
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