[Vm-dev] debuggable win32 VM?

Mariano Martinez Peck marianopeck at gmail.com
Wed May 11 14:54:22 UTC 2011


On Wed, May 11, 2011 at 2:59 PM, Craig Latta <craig at netjam.org> wrote:

>
>
> Hi--
>
>     For the next Spoon release I want debuggable VMs and plugins on all
> platforms. In 2007 for win32 I created a Microsoft Visual C "solution"
> for use with the free MSVC Express Edition (2008 or later). The debugger
> is decent.
>
>     I scanned the current CMake-based stuff, but didn't see anything
> about MSVC (or win32 gdb for that matter). Is there a current route for
> debugging the win32 VM using MSVC or gdb (or anything more pleasant than
> printf)? Or should I update my MSVC stuff and contribute it somewhere?
> In 2007 I only gave it to Andreas (the win32 VM maintainer) and a few
> other folks who asked for it.
>


Hi Craig.  I did a post about how to build and debug a Cog
VM<http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/>with
the new CMake stuff and how do debug it.
You probably know most of the stuff there but it may help you for the
CMakeVMMaker configs.

Anyway, I tried to debug with gdb in Windows. The results where that I could
sucessfully build the VM in windows with all the debug symblos, no compiler
optimizations, etc...
I could run the VM with gdb, no problem.  The only REAL problem (which is
quite big in fact) I have is that when I did a ctrl+c instead of
interrupting the VM and hence get the gdb prompt....it killed gdb directly
:(  I look in Internet and seems to be a known problem.

I didn't try the CMake generator (-G xxx) because I don't have a Visual
nothing installed.

Mariano



>
>
>     thanks!
>
> -C
>
> --
> Craig Latta
> www.netjam.org/resume
> +31 06 2757 7177
> + 1 415 287 3547
>
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20110511/9d020a9b/attachment-0001.htm


More information about the Vm-dev mailing list