[Vm-beginners] Fwd: Oops - I put a halt in a startup method

Mariano Martinez Peck marianopeck at gmail.com
Fri Sep 9 07:50:51 UTC 2011


Sean: it may be difficult/impossible. But....you may want to try invoking
the function say printOop() from the XCode console.
If you read my post:
http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/

Then instead of doing "(gdb) call printAllStacks()"  you can try something
like "(gdb) call printOop(526237628)"  and that will print something like
"an XXX class".
Of course, you need to replace 526237628  with the real OOP of your receiver
object.

Good luck!

On Fri, Sep 9, 2011 at 5:35 AM, Sean P. DeNigris <sean at clipperadams.com>wrote:

> From
> http://forum.world.st/Oops-I-put-a-halt-in-a-startup-method-td3800163.html:
>     My image appears for an instant and then crashes. Is there any way to
> recover from this?
>
> I made some progress, but I'm not sure I'm on the right track...
>  I built a debug VM and found primitivePerform, which is apparently called
> by the following:
>     FeaturesDB perform: #startUp: with: resuming
>
>  How will I know which call to skip/break on? Maybe there is there a way,
> from the VM side, to get the receiver class name as a string? If I knew
> that
> the receiver was FeaturesDB, that would be the one...
>
> And then once I have the right call, can I just skip over it?
>
> Sean
>
>
> --
> View this message in context:
> http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-tp3800729p3800729.html
> Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> VM-beginners mailing list
> VM-beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-beginners/attachments/20110909/d230a297/attachment.htm


More information about the VM-beginners mailing list