[Bug 30332] New: winedbg reports "Size mismatch in memory_write_value, got 8 from type while expecting 4" when trying to modify 64 bit register values

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 1 15:40:05 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=30332

             Bug #: 30332
           Summary: winedbg reports "Size mismatch in memory_write_value,
                    got 8 from type while expecting 4" when trying to
                    modify 64 bit register values
           Product: Wine
           Version: 1.5.1
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: winedbg
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: focht at gmx.net
    Classification: Unclassified


Hello,

while debugging 64 bit apps I needed to modify 64 bit register values as whole,
not only the 32 bit part.

Example:

--- snip ---
$ wine64 winedbg notepad
WineDbg starting on pid 0027
0x00007f1d7fb6ef25 DbgBreakPoint+0x1 in ntdll: ret

Wine-dbg>info reg
Register dump:
 rip:00007f1d7fb6ef25 rsp:000000000023fd08 rbp:000000000023fe20 eflags:00000202
(   - --  I   - - - )
 rax:0000000000000001 rbx:00007fffffbe8000 rcx:00007f1d79270000
rdx:0000000000000003
 rsi:0000000000000000 rdi:000000007bb31330  r8:00000000ffffffff 
r9:0000000000000000 r10:00007fff172c9360
 r11:00007f1d7fe0f950 r12:000000007bf00bc0 r13:00007fff172cad30
r14:0000000000000000 r15:0000000000000000

Wine-dbg>set $rax=0
Size mismatch in memory_write_value, got 8 from type while expecting 4

Wine-dbg>set $eax=0

Wine-dbg>info reg
Register dump:
 rip:00007f1d7fb6ef25 rsp:000000000023fd08 rbp:000000000023fe20 eflags:00000202
(   - --  I   - - - )
 rax:0000000000000000 rbx:00007fffffbe8000 rcx:00007f1d79270000
rdx:0000000000000003
 rsi:0000000000000000 rdi:000000007bb31330  r8:00000000ffffffff 
r9:0000000000000000 r10:00007fff172c9360
 r11:00007f1d7fe0f950 r12:000000007bf00bc0 r13:00007fff172cad30
r14:0000000000000000 r15:0000000000000000

Wine-dbg>set $eax=$ecx

Wine-dbg>set $rax=$rcx
Size mismatch in memory_write_value, got 8 from type while expecting 4
Wine-dbg>
--- snip ---

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list