<P><A href="http://www.winehq.org/hypermail/wine-devel/2005/03/0219.html">http://www.winehq.org/hypermail/wine-devel/2005/03/0219.html</A><BR></P>
<P>(not sure it still applies cleanly, at least some tiny parts are now in CVS tree)<BR><BR>A+<BR><BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">&gt; Message du 30/11/05 05:13<BR>&gt; De : "Vitaliy Margolen" <WINE-DEVEL@KIEVINFO.COM><BR>&gt; A : "Eric Pouech" <ERIC.POUECH@WANADOO.FR><BR>&gt; Copie à : wine-devel@winehq.org<BR>&gt; Objet : Re: Dereferencing a pointer in winedbg<BR>&gt; <BR>&gt; Monday, November 28, 2005, 2:33:35 PM, Eric Pouech wrote:<BR>&gt; &gt; Vitaliy Margolen wrote:<BR>&gt; &gt;&gt; Sunday, November 27, 2005, 10:50:39 PM, Marcus Meissner wrote:<BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt;&gt;On Sun, Nov 27, 2005 at 06:35:15PM -0700, Vitaliy Margolen wrote:<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;&gt;Is it possible to dereference a pointer in winedbg? Help says that<BR>&gt; &gt;&gt;&gt;&gt;"*$eax" is a valid expression. But when I'm trying to use it it saying:<BR>&gt; &gt;&gt;&gt;&gt;Wine-dbg&gt;p *$eax<BR>&gt; &gt;&gt;&gt;&gt;No type or type mismatch<BR>&gt; &gt;&gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;&gt;Is there are a way to do this?<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;(x aka examine memory)<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;x $eax<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;Ciao, Marcus<BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; <BR>&gt; &gt;&gt; Well I need to add that to display. Something like: display/x *$eax<BR>&gt; &gt;&gt; Doing x $eax and then x <RESULT>100s times kind of hard.<BR>&gt; <BR>&gt; &gt; display /x means (in gdb) formatting differently the output, not <BR>&gt; &gt; dereferencing the (so called) pointer (display is a repeated 'p' <BR>&gt; &gt; command, not a 'x' one).<BR>&gt; Yes I know. I meant /x for hex not decimal.<BR>&gt; <BR>&gt; &gt; what you'd need is support for type casts and use something like:<BR>&gt; &gt; display *(int*)$eax<BR>&gt; Yes correct. That's exactly what I need.<BR>&gt; <BR>&gt; &gt; I sent a couple of months ago a patch for winedbg that (partly) <BR>&gt; &gt; implemented the support for typecasts in wine. You should look for it.<BR>&gt; Could you please point me to it? I've spent last hour or so trying to<BR>&gt; find it.<BR>&gt; <BR>&gt; Vitaliy.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; </BLOCKQUOTE>