Dereferencing a pointer in winedbg

Eric Pouech eric.pouech at wanadoo.fr
Mon Nov 28 15:33:35 CST 2005


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 <result> 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).
what you'd need is support for type casts and use something like:
display *(int*)$eax
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.
A+

-- 
Eric Pouech




More information about the wine-devel mailing list