http://bugs.winehq.org/show_bug.cgi?id=21550
Summary: Winedbg's disassembler doesn't support SSE2 instructions Product: Wine Version: 1.1.37 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg AssignedTo: wine-bugs@winehq.org ReportedBy: b7.10110111@gmail.com
Winedbg doesn't support SSE2 instructions while gdb does.
http://bugs.winehq.org/show_bug.cgi?id=21550
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2010-01-30 12:10:26 --- Have any sample application/source code showing the issue?
http://bugs.winehq.org/show_bug.cgi?id=21550
--- Comment #2 from Ruslan b7.10110111@gmail.com 2010-01-31 01:39:23 --- Created an attachment (id=25976) --> (http://bugs.winehq.org/attachment.cgi?id=25976) Tiny program with inline sse2 asm instruction
To see the problem, compile this file with "-g" option with gcc and winegcc, and check in gdb: gdb sse2
break sse2 run disassemble
and in winedbg: winedbg sse2.exe.so
break sse2 c disassemble
In gdb, i get this disassembly: (gdb) disassemble Dump of assembler code for function sse2: 0x08048324 <sse2+0>: push %ebp 0x08048325 <sse2+1>: mov %esp,%ebp 0x08048327 <sse2+3>: movapd %xmm0,%xmm0 0x0804832b <sse2+7>: pop %ebp 0x0804832c <sse2+8>: ret End of assembler dump.
while in winedbg this: Wine-dbg>disassemble 0x7eb0a5e0 sse2 [/home/ruslan/sse2.c:2] in sse2: pushl %ebp 0x7eb0a5e1 sse2+0x1 [/home/ruslan/sse2.c:2] in sse2: movl %esp,%ebp 0x7eb0a5e3 sse2+0x3 [/home/ruslan/sse2.c:3] in sse2: 0x7eb0a5e6 sse2+0x6 [/home/ruslan/sse2.c:3] in sse2: rcrb $0x8d,0xffffffc3(%ebp) 0x7eb0a5ea main+0x1 [/home/ruslan/sse2.c:6] in sse2: decl %esp 0x7eb0a5eb main+0x2 [/home/ruslan/sse2.c:6] in sse2: andb $0x4,%al 0x7eb0a5ed main+0x4 [/home/ruslan/sse2.c:6] in sse2: andl $-16,%esp 0x7eb0a5f0 main+0x7 [/home/ruslan/sse2.c:6] in sse2: pushl 0xfffffffc(%ecx) 0x7eb0a5f3 main+0xa [/home/ruslan/sse2.c:6] in sse2: pushl %ebp 0x7eb0a5f4 main+0xb [/home/ruslan/sse2.c:6] in sse2: movl %esp,%ebp
i.e. winedbg doesn't interpret movapd instruction here (*0x7eb0a5e3).
http://bugs.winehq.org/show_bug.cgi?id=21550
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #25976|text/x-csrc |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=21550
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2010-01-31 10:52:09 --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=21550
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=21550
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #4 from André H. nerv@dawncrow.de 2012-07-08 07:26:22 CDT --- still present in wine 1.5.8
https://bugs.winehq.org/show_bug.cgi?id=21550
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=21550
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
obviously still present. As workaround use winedbg in gdb proxy mode ('winedbg --gdb foo.exe').
$ wine --version wine-1.7.45
Regards
https://bugs.winehq.org/show_bug.cgi?id=21550
--- Comment #7 from Ruslan Kabatsayev b7.10110111@gmail.com --- Still present in wine-2.0-235-g2dd0fb8.
https://bugs.winehq.org/show_bug.cgi?id=21550
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #8 from Bernhard Übelacker bernhardu@mailbox.org --- I guess this issue can be closed as winedbg seems to be able to disassemble the instruction?
With "--gdb": Wine-gdb> disassemble sse2 Dump of assembler code for function _Z4sse2v: 0x004015b0 <+0>: push %ebp 0x004015b1 <+1>: mov %esp,%ebp 0x004015b3 <+3>: movapd %xmm0,%xmm0 0x004015b7 <+7>: nop 0x004015b8 <+8>: pop %ebp 0x004015b9 <+9>: ret End of assembler dump.
Without "--gdb": Wine-dbg>disassemble 0x004015b0,0x004015b9 0x000000004015b0 test+0x15b0: push %ebp 0x000000004015b1 test+0x15b1: mov %esp, %ebp 0x000000004015b3 test+0x15b3: movapd %xmm0, %xmm0 0x000000004015b7 test+0x15b7: nop 0x000000004015b8 test+0x15b8: pop %ebp 0x000000004015b9 test+0x15b9: ret
https://bugs.winehq.org/show_bug.cgi?id=21550
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Yes, we are using the Zydis disassembler now.
https://bugs.winehq.org/show_bug.cgi?id=21550
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1774db388be65dc89b8e887995e | |6628dacfad3d6
https://bugs.winehq.org/show_bug.cgi?id=21550
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc2.