Re: [Pharo-project] [Vm-beginners] Fwd: Oops - I put a halt in a startup method
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@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-tp3800729p38... Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com. _______________________________________________ VM-beginners mailing list VM-beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
-- Mariano http://marianopeck.wordpress.com
Mariano Martinez Peck wrote:
Sean: it may be difficult/impossible. But....you may want to try invoking the function say printOop() from the XCode console.
Thanks Mariano. When I put a breakpoint in Xcode with this particular image, the image takes over my whole screen (may be because it's in fullscreen) and I have to hard reset. So instead of printing the class name, I'm trying to get it as a string, so I can put an if to skip on the desired call. I'm working on it, but my C is very rusty and I'm fumbling with the string handling. Mariano Martinez Peck wrote:
If you read my post: http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/
Very nice. I actually saw a lot of interesting VM-related info on your blog that I added to my reading list. -- View this message in context: http://forum.world.st/Re-Vm-beginners-Fwd-Oops-I-put-a-halt-in-a-startup-met... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (2)
-
Mariano Martinez Peck -
Sean P. DeNigris