[Bug 4124] New: some commands of winedbg r wrong, next and step

Wine Bugs wine-bugs at winehq.org
Wed Dec 21 20:06:50 CST 2005


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

           Summary: some commands of winedbg r wrong, next and step
           Product: Wine
           Version: 0.9.2.
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-programs
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: muziwind at yahoo.com.cn


i use winedbg debugging. when i use n or s, winedbg errors.

winedbg notepad.exe.so
Wine-dbg>b DIALOG_SelectFont
Wine-dbg>c
Stopped on breakpoint 1 at 0x007b46dc DIALOG_SelectFont+0x18 [dialog.c:653] in
notepad
DIALOG_SelectFont () at dialog.c:653
its here:dbg_exception_prolog
653         LOGFONT lf=Globals.lfFont;
Wine-dbg>disas
0x007b46dc DIALOG_SelectFont+0x18 [dialog.c:653] in notepad: movl      
0xfffffff0(%ebx),%eax
0x007b46e2 DIALOG_SelectFont+0x1e [dialog.c:653] in notepad: leal      
0xffffff54(%ebp),%edi
0x007b46e8 DIALOG_SelectFont+0x24 [dialog.c:653] in notepad: leal      
0x14(%eax),%esi
0x007b46eb DIALOG_SelectFont+0x27 [dialog.c:653] in notepad: cld
0x007b46ec DIALOG_SelectFont+0x28 [dialog.c:653] in notepad: movl       $0x17,%eax
0x007b46f1 DIALOG_SelectFont+0x2d [dialog.c:653] in notepad: movl       %eax,%ecx
0x007b46f3 DIALOG_SelectFont+0x2f [dialog.c:653] in notepad: repe movsl
(%esi),%es:(%edi)
0x007b46f5 DIALOG_SelectFont+0x31 [dialog.c:655] in notepad: pushl      $0x3c
0x007b46f7 DIALOG_SelectFont+0x33 [dialog.c:655] in notepad: pushl      $0x0
0x007b46f9 DIALOG_SelectFont+0x35 [dialog.c:655] in notepad: leal      
0xffffffb4(%ebp),%eax
Wine-dbg>list
653         LOGFONT lf=Globals.lfFont;
654
655         ZeroMemory( &cf, sizeof(cf) );
656         cf.lStructSize=sizeof(cf);
657         cf.hwndOwner=Globals.hMainWnd;
658         cf.lpLogFont=&lf;
659         cf.Flags=CF_SCREENFONTS;
660
661         if( ChooseFont(&cf) )
662         {
663             HFONT currfont=Globals.hFont;
Wine-dbg>n
its dbg_wait_next_exception
its dbg_wait_next_exception
its dbg_wait_next_exception
First chance exception: illegal instruction in 32-bit code (0x007b46e6).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:003b GS:0033
 EIP:007b46e6 ESP:7b87fa38 EBP:7b87fae8 EFLAGS:00210296(   - 00      RISAP1)
 EAX:007c68e0 EBX:007b610c ECX:007b4f7a EDX:0089a4c0
 ESI:008bc254 EDI:00010022
Stack dump:
0x7b87fa38:  00000000 00010022 00000005 002e0061
0x7b87fa48:  00e1f1ac 00010022 0000006d 00ac8da4
0x7b87fa58:  00dfb43a 7bc24ba5 00e1f1ac 7bc24ca0
0x7b87fa68:  00000071 000000dd 00000000 00000000
0x7b87fa78:  00b9ded3 0018d618 0087d784 7b87fa94
0x7b87fa88:  00854c40 0089a4c0 7b87fdb0 00823874
Backtrace:
=>1 0x007b46e6 DIALOG_SelectFont [dialog.c:653] in notepad (0x007b46e6)
  2 0x007b4d95 NOTEPAD_MenuCommand+0xce(wParam=0x140) [main.c:81] in notepad
(0x007b4d95)
  3 0x007b50ab NOTEPAD_WndProc+0x131(hWnd=0x10022, msg=0x111, wParam=0x140,
lParam=0x0) [main.c:167] in notepad (0x007b50ab)
  4 0x0085cbab WINPROC_wrapper+0x17 in user32 (0x0085cbab)
  5 0x0085ce9f WINPROC_CallWndProc+0x53(proc=0x7b4f7a, hwnd=0x10022, msg=0x111,
wParam=0x140, lParam=0x0)
[/usr/src/redhat/BUILD/wine-0.9.2/dlls/user/winproc.c:417] in user32 (0x0085ce9f)
  6 0x0086237a CallWindowProcW(func=0x8bc254, hwnd=0x10022, msg=0x111,
wParam=0x140, lParam=0x0)
[/usr/src/redhat/BUILD/wine-0.9.2/dlls/user/winproc.c:3326] in user32 (0x0086237a)
  7 0x0083c8ee DispatchMessageW+0xa2(msg=0x7b87fe74)
[/usr/src/redhat/BUILD/wine-0.9.2/dlls/user/message.c:2986] in user32 (0x0083c8ee)
  8 0x007b566e WinMain+0x1e3(hInstance=0x7b0000, prev=0x0, cmdline=0x7bde0e07,
show=0x1) [main.c:387] in notepad (0x007b566e)
  9 0x007b5779 main+0x79(argc=0x1, argv=0x7bde0480) [exe_main.c:49] in notepad
(0x007b5779)
  10 0x007b56c4 __wine_spec_exe_entry(peb=0x7bc6c700) [exe_entry.c:36] in
notepad (0x007b56c4)
  11 0x0017b40d start_process+0xc1(arg=0x0)
[/usr/src/redhat/BUILD/wine-0.9.2/dlls/kernel/process.c:995] in kernel32
(0x0017b40d)
  12 0x00ea06d1 wine_switch_to_stack+0x11 in libwine.so.1 (0x00ea06d1)
its here:dbg_exception_prolog
0x007b46e6 DIALOG_SelectFont+0x22 [dialog.c:653] in notepad:
653         LOGFONT lf=Globals.lfFont;


from 0x007b46dc[dialog.c:653],after "next" command it should go to
0x007b46f5[dialog.c:655] in my opinion,but it goes to 0x007b46e6[dialog.c:653]

does anyone see the problem before?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list