[Bug 16069] VC6 debugging not working
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Nov 18 02:32:35 CST 2008
http://bugs.winehq.org/show_bug.cgi?id=16069
--- Comment #4 from Ken Resander <kresander at yahoo.com> 2008-11-18 02:32:35 ---
(In reply to comment #3)
> (In reply to comment #2)
> > not major. http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
> >
> > does the problem still exist if you use Wine 1.1.8?
> >
>
> Yes, the problems still exist.
>
Minimal test program that demonstrates the problems:
// TESTDEBUG.CPP
#include <windows.h>
HWND hwndmain ;
HINSTANCE hmodule ;
int aglobal ;
int bglobal ;
static LRESULT CALLBACK MainWndProc( HWND hWnd, UINT msg, WPARAM wParam,
LPARAM lParam )
{
switch( msg )
{
case WM_CLOSE:
DestroyWindow ( hWnd ) ;
break ;
case WM_DESTROY:
PostQuitMessage( 0 );
break;
default:
return( DefWindowProc( hWnd, msg, wParam, lParam ));
}
return 0;
}
int PASCAL WinMain( HINSTANCE fhInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int nCmdShow )
{
WNDCLASS wc;
MSG msg;
int a = 1 ;
int b = a + 1 ;
aglobal = 10 ;
bglobal = aglobal + 20 ;
hmodule = fhInstance ;
if( !hPrevInstance )
{
wc.lpszClassName = "GenericAppClass";
wc.lpfnWndProc = MainWndProc;
wc.style = CS_OWNDC | CS_VREDRAW | CS_HREDRAW;
wc.hInstance = hmodule;
wc.hIcon = LoadIcon( NULL, IDI_APPLICATION );
wc.hCursor = LoadCursor( NULL, IDC_ARROW );
COLORREF col = RGB(0,0,0);
wc.hbrBackground = (HBRUSH)CreateSolidBrush ( col ) ;
wc.lpszMenuName = "GenericAppMenu";
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
RegisterClass( &wc );
}
hwndmain = CreateWindow( "GenericAppClass",
"Application Title" ,
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME | WS_MINIMIZEBOX |
WS_MAXIMIZEBOX | WS_MAXIMIZE | WS_VISIBLE ,
0,0 , 640 , 452,
NULL,
NULL,
hmodule,
NULL );
if ( hwndmain != NULL )
{
SetWindowText ( hwndmain , "CreateWindow worked" ) ;
} ;
while( GetMessage( &msg, NULL, 0, 0 ) )
{
TranslateMessage( &msg );
DispatchMessage( &msg ) ;
} ;
return msg.wParam;
}
Please define as a normal Win32 Application project.
1. issue GO(F5) to let program run; shows it is working
2. place cursor on 'hmodule = fhInstance ;' line and
a) go to cursor Ctrl+F10
b) inspect data for variables a, b via Shift+F9 shows
error: expression cannot be evaluated. Formal
parameter fhInstance inspection also not working.
These are located on the stack.
c) inspecting global variables aglobal and bglobal shows
data inspection working for non-local data
3. single stepping by F10 to line ' hwndmain = CreateWindow(
"GenericAppClass",... works
4. but program does not return after calling CreateWindow.
Also, program does not go to a break point set after CreateWindow
--
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