Dereferencing a pointer in winedbg

Vitaliy Margolen wine-devel at kievinfo.com
Tue Nov 29 22:00:32 CST 2005


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








More information about the wine-devel mailing list