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