Page 1 of 1

Help to make Bochs GUI debugger working with MSDEV

Posted: Sat Apr 11, 2009 8:13 am
by stlw
Hello everybody,

We are right about to release new Bochs version with Bochs debugger GUI integrated. It looks like working fine if compiled by gcc (linux or cygwin) but when compiled under MSDEV it crash on almost any debugger button or command.
Also it won't compile and work if uncommenting #define IS_WIN98 in win32_enh_dbg_osdep.cc.

Somebody could help ?
Step to reproduce:

1. Download Bochs CVS.
2. Configure using .conf.win32-vcpp witha adding --enable-debugger and --enable-debugger-gui options
3. Build using MSDEV with single nmake command from Bochs sources root folder.
(I use MSdev express edition from http://www.microsoft.com/express/vc)

Stanislav

Re: Help to make Bochs GUI debugger working with MSDEV

Posted: Sun Apr 12, 2009 2:12 pm
by bewing
Well, you could just revert to the working code I sent you 3 months ago.

It'll be a while before I can load the current version of bochs into MSVC and find out what's wrong.

Re: Help to make Bochs GUI debugger working with MSDEV

Posted: Sun Apr 12, 2009 2:24 pm
by stlw
bewing wrote:Well, you could just revert to the working code I sent you 3 months ago.

It'll be a while before I can load the current version of bochs into MSVC and find out what's wrong.
3 months ago code didn't work with Visual C++ 2008 as well - same symptoms, checked recently !
Moreover because of some typos (missed '(' and etc) et even won't compile.
On Visual C+ 2008 the LVIF_GROUPID is defined and therefore IS_WIN98 turned out to be undefined.

Code: Select all

#ifndef LVIF_GROUPID
#define IS_WIN98
// this define may not exist in some compilers
#define LVIF_GROUPID    0
#endif
As result bunch of the code which was #ifndef'ed IS_WIN98 will try to compile and fail on compilation errors.
Also it still won't work when compiled native into 64-bit code.

But were are lucky - Ben Lunt found the issue with LVIF_GROUPID and fixed the problem.
Still not in 64-bit native though ...

Stanislav

Re: Help to make Bochs GUI debugger working with MSDEV

Posted: Fri Apr 17, 2009 8:16 am
by bewing
Well, it looks to me like you never updated the win32_enh_dbg.rc in bochs with the one I sent you in January. That's what having the wrong .rc file will do.

Re: Help to make Bochs GUI debugger working with MSDEV

Posted: Fri Apr 17, 2009 9:52 am
by stlw
bewing wrote:Well, it looks to me like you never updated the win32_enh_dbg.rc in bochs with the one I sent you in January. That's what having the wrong .rc file will do.
Actually I did. But I will not surpried if I missed the .rc file - I never touched it myself just overwrote with new copy I got from you.
Could you look onto Bochs CVS and tell if the .rc file is up-to-date according to your expectations ?
Also if you have some updates to the rest debugger frontend code - could you share them ?

Thanks,
Stanislav