winedbg cast operator
Eric Pouech
eric.pouech at wanadoo.fr
Sun Jan 5 07:39:19 CST 2003
in winedbg, using something like p (char*)0x12345678 had been broken for
years
this should fix it
A+
--
Eric Pouech
-------------- next part --------------
Name: wdbg_cast
ChangeLog: fixed some bugs in cast operator
License: X11
GenDate: 2003/01/05 13:37:14 UTC
ModifiedFiles: programs/winedbg/expr.c
AddedFiles:
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/programs/winedbg/expr.c,v
retrieving revision 1.2
diff -u -u -r1.2 expr.c
--- programs/winedbg/expr.c 16 Sep 2002 19:26:48 -0000 1.2
+++ programs/winedbg/expr.c 5 Jan 2003 13:36:37 -0000
@@ -321,15 +321,13 @@
switch(exp->type)
{
case EXPR_TYPE_CAST:
- rtn = DEBUG_EvalExpr(exp->un.cast.expr);
- rtn.type = exp->un.cast.cast;
- if (!rtn.type)
+ if (!exp->un.cast.cast)
{
DEBUG_Printf(DBG_CHN_MESG, "Can't cast to unknown type\n");
RaiseException(DEBUG_STATUS_BAD_TYPE, 0, 0, NULL);
}
- if (DEBUG_GetType(rtn.type) == DT_POINTER)
- rtn.cookie = DV_TARGET;
+ rtn = DEBUG_EvalExpr(exp->un.cast.expr);
+ rtn.type = exp->un.cast.cast;
break;
case EXPR_TYPE_STRING:
rtn.type = DEBUG_GetBasicType(DT_BASIC_STRING);
More information about the wine-patches
mailing list