Commit 30313d23 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Remove FORCE_DEREF expressions.

parent 5020371e
......@@ -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); }
;
%%
......
......@@ -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)
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment