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
4d7f9f7c
Commit
4d7f9f7c
authored
Dec 06, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fixed broken code about type management for binary operator.
parent
1395d145
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
expr.c
programs/winedbg/expr.c
+6
-4
No files found.
programs/winedbg/expr.c
View file @
4d7f9f7c
...
...
@@ -482,16 +482,18 @@ struct dbg_lvalue expr_eval(struct expr* exp)
rtn
.
type
.
id
=
dbg_itype_signed_int
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
binop
.
result
;
type1
=
exp1
.
type
;
type2
=
exp2
.
type
;
switch
(
exp
->
un
.
binop
.
binop_type
)
{
case
EXP_OP_ADD
:
if
(
!
types_get_info
(
&
exp1
.
type
,
TI_GET_SYMTAG
,
&
tag
)
||
tag
!=
SymTagPointerType
||
!
types_get_info
(
&
exp1
.
type
,
TI_GET_TYPE
,
&
type1
))
!
types_get_info
(
&
exp1
.
type
,
TI_GET_TYPE
,
&
type1
.
id
))
type1
.
id
=
dbg_itype_none
;
if
(
!
types_get_info
(
&
exp2
.
type
,
TI_GET_SYMTAG
,
&
tag
)
||
tag
!=
SymTagPointerType
||
!
types_get_info
(
&
exp2
.
type
,
TI_GET_TYPE
,
&
type2
))
!
types_get_info
(
&
exp2
.
type
,
TI_GET_TYPE
,
&
type2
.
id
))
type2
.
id
=
dbg_itype_none
;
scale1
=
1
;
scale2
=
1
;
...
...
@@ -513,11 +515,11 @@ struct dbg_lvalue expr_eval(struct expr* exp)
case
EXP_OP_SUB
:
if
(
!
types_get_info
(
&
exp1
.
type
,
TI_GET_SYMTAG
,
&
tag
)
||
tag
!=
SymTagPointerType
||
!
types_get_info
(
&
exp1
.
type
,
TI_GET_TYPE
,
&
type1
))
!
types_get_info
(
&
exp1
.
type
,
TI_GET_TYPE
,
&
type1
.
id
))
type1
.
id
=
dbg_itype_none
;
if
(
!
types_get_info
(
&
exp2
.
type
,
TI_GET_SYMTAG
,
&
tag
)
||
tag
!=
SymTagPointerType
||
!
types_get_info
(
&
exp2
.
type
,
TI_GET_TYPE
,
&
type2
))
!
types_get_info
(
&
exp2
.
type
,
TI_GET_TYPE
,
&
type2
.
id
))
type2
.
id
=
dbg_itype_none
;
scale1
=
1
;
scale2
=
1
;
...
...
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