[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Dereferencing a pointer in winedbg
From:       Eric POUECH <eric.pouech () wanadoo ! fr>
Date:       2005-11-30 7:41:13
Message-ID: 3764157.1133336473296.JavaMail.www () wwinf1632
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


http://www.winehq.org/hypermail/wine-devel/2005/03/0219.html

(not sure it still applies cleanly, at least some tiny parts are now in CVS tree)

A+


> Message du 30/11/05 05:13
> De : "Vitaliy Margolen" 
> A : "Eric Pouech" 
> Copie à : wine-devel@winehq.org
> Objet : Re: Dereferencing a pointer in winedbg
> 
> Monday, November 28, 2005, 2:33:35 PM, Eric Pouech wrote:
> > Vitaliy Margolen wrote:
> >> Sunday, November 27, 2005, 10:50:39 PM, Marcus Meissner wrote:
> >> 
> >>>On Sun, Nov 27, 2005 at 06:35:15PM -0700, Vitaliy Margolen wrote:
> >>>
> >>>>Is it possible to dereference a pointer in winedbg? Help says that
> >>>>"*$eax" is a valid expression. But when I'm trying to use it it saying:
> >>>>Wine-dbg>p *$eax
> >>>>No type or type mismatch
> >>>>
> >>>>Is there are a way to do this?
> >>>
> >>>(x aka examine memory)
> >>>
> >>>x $eax
> >>>
> >>>Ciao, Marcus
> >> 
> >> 
> >> Well I need to add that to display. Something like: display/x *$eax
> >> Doing x $eax and then x 100s times kind of hard.
> 
> > display /x means (in gdb) formatting differently the output, not 
> > dereferencing the (so called) pointer (display is a repeated 'p' 
> > command, not a 'x' one).
> Yes I know. I meant /x for hex not decimal.
> 
> > what you'd need is support for type casts and use something like:
> > display *(int*)$eax
> Yes correct. That's exactly what I need.
> 
> > I sent a couple of months ago a patch for winedbg that (partly) 
> > implemented the support for typecasts in wine. You should look for it.
> Could you please point me to it? I've spent last hour or so trying to
> find it.
> 
> Vitaliy.
> 
> 
> 
> 
> 
> 
> 
> 
>
[Attachment #5 (text/html)]

<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>





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic