I don't have commit access to VMMaker, so I attach de mcz
Name: CMakeVMMaker-MarianoMartinezPeck.57 Author: MarianoMartinezPeck Time: 1 April 2011, 2:53:25 pm UUID: 4fc51c2f-d626-439d-869d-b1bd60c23a89 Ancestors: CMakeVMMaker-MarianoMartinezPeck.56
New classes CogDebugMacOSConfig and StackInterpreterDebugMacOSConfig that implements #compilerFlags so that to answer the debug ones.
Anyway...I don't like a new class just for implementing #compilerFlags ^ self compilerFlagsDebug.
I would prefer use the same class and do: CogMacOSConfig generateForDebugWithSources
Cheers
Mariano
On Wed, Mar 16, 2011 at 5:35 PM, Igor Stasenko siguctua@gmail.com wrote:
On 16 March 2011 17:16, Mariano Martinez Peck marianopeck@gmail.com wrote:
On Wed, Mar 16, 2011 at 5:11 PM, Igor Stasenko siguctua@gmail.com
wrote:
On 16 March 2011 16:58, Mariano Martinez Peck marianopeck@gmail.com wrote:
I've just create it:
StackInterpreterMacOSConfig subclass:
#StackInterpreterDebugMacOSConfig
instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'CMakeVMMaker'
And implemented:
StackInterpreterDebugMacOSConfig >> compilerFlags
^ self commonCompilerFlags, ' ' ,self compilerFlagsDebug
Is this correct ? I would like to complelty debug with XCode out of
the
box.
It you can build VM using this config, and it satisfies your needs (debug flags etc), then it is correct. :)
The problem is that I am not sure if it is really correct. I put a breakpoint in lookupMethodInClass(sqInt class). When I enter the XCode debugger, and see the srtacktrace, I go down to
the
caller: interpret() and instead of seeing the place inside interpret() where the call to lookupMethodInClass() is done, the XCode goes to this place:
/* This doesn't belong here, but neither do 'self flag: ...'s belong in
the
image. */
#ifdef _MSC_VER static void flag(char *ignored) {} #else <---------------- HERE static inline void flag(char *ignored) {} #endif
This seems to be from sqMemoryAccess.h
Any help?
Wipe everything in /src /build dirs
and use <YourConfig> generateWithSources
see if it can help
thanks
mariano
Once you verify, just send me .cs and i will include it.
Thanks
Mariano
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.