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
30313d23
Commit
30313d23
authored
May 20, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Remove FORCE_DEREF expressions.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
5020371e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
dbg.y
programs/winedbg/dbg.y
+1
-1
expr.c
programs/winedbg/expr.c
+0
-5
expr.h
programs/winedbg/expr.h
+0
-1
No files found.
programs/winedbg/dbg.y
View file @
30313d23
...
...
@@ -428,7 +428,7 @@ lvalue:
| lvalue OP_DRF tIDENTIFIER { $$ = expr_alloc_pstruct($1, $3); }
| lvalue '.' tIDENTIFIER { $$ = expr_alloc_struct($1, $3); }
| lvalue '[' expr ']' { $$ = expr_alloc_binary_op(EXP_OP_ARR, $1, $3); }
| '*' expr { $$ = expr_alloc_unary_op(EXP_OP_
FORCE_
DEREF, $2); }
| '*' expr { $$ = expr_alloc_unary_op(EXP_OP_DEREF, $2); }
;
%%
...
...
programs/winedbg/expr.c
View file @
30313d23
...
...
@@ -600,11 +600,6 @@ struct dbg_lvalue expr_eval(struct expr* exp)
if
(
!
types_array_index
(
&
exp1
,
0
,
&
rtn
))
RaiseException
(
DEBUG_STATUS_BAD_TYPE
,
0
,
0
,
NULL
);
break
;
case
EXP_OP_FORCE_DEREF
:
rtn
=
exp1
;
if
(
exp1
.
in_debuggee
)
dbg_read_memory
(
memory_to_linear_addr
(
&
exp1
.
addr
),
&
rtn
.
addr
.
Offset
,
sizeof
(
rtn
.
addr
.
Offset
));
break
;
case
EXP_OP_ADDR
:
/* only do it on linear addresses */
if
(
exp1
.
addr
.
Mode
!=
AddrModeFlat
)
...
...
programs/winedbg/expr.h
View file @
30313d23
...
...
@@ -41,4 +41,3 @@
#define EXP_OP_ADDR 0x27
#define EXP_OP_ARR 0x28
#define EXP_OP_SEG 0x29
#define EXP_OP_FORCE_DEREF 0x2a
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