On Tue, Sep 19, 2017 at 8:07 AM, Phil B <pbpublist@gmail.com> wrote:
 
Tim,

I'm open to that... any tutorials on that front would be appreciated 😀. The last time I tried (around the spur conversion timeframe) I was unable to run an image in the simulator for more than a few minutes without problems.

Clement wrote a nice tutorial https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/
derived from... 
  http://forum.world.st/Exploring-the-simulator-was-Re-REPL-image-for-simulation-td4896870.html
  http://forum.world.st/Re-Exploring-the-simulator-method-args-td4898906.html

and if you dig deeper into C side, you might also find my rough drawings here useful...
  http://forum.world.st/CogVM-Execution-Flow-td4900675.html
(I need to get back to finishing them (dependent on finishing my UFFI Clang interface to anaylse and chart with Roassal))


(You folks do some nice work in VM-land... sure would be nice if it were more easily reproducible by those of us who don't work with the internals daily.  For example: what is the recommended way to build a VMMaker image these days?  Tried the obvious ways in Squeak 5.1 and Pharo 6.1 and both failed...)

Should be as easy as...
$ git clone https://github.com/OpenSmalltalk/opensmalltalk-vm.git
$ cd opensmalltalk-vm/build.linux..../pharo.cog.spur/build.debug/
$ ./mvm
...and look for binaries in "products" directory.  

Maybe there are times when your installed autotools versions conflicts (IIUC Eliot sometimes has problems on newer Linux versions).
If you hit such problems, one path forward may be to leverage Luke's work to produce a Nix build, which "should" be entirely reproducible on anyone's environment.  
  http://forum.world.st/Fwd-Nix-package-for-Pharo-flavor-of-opensmalltalk-vm-td4942450.html
  http://forum.world.st/nix-based-build-system-was-problem-with-configure-and-libGL-on-CentOS-6-5-td4944335.html
@Luke, could you refresh me on how to kick off a Nix Pharo VM build on a non-NixOS platform?

cheers -ben
 

Thanks,
Phil

On Sep 18, 2017 7:38 PM, "tim Rowledge" <tim@rowledge.org> wrote:

When possible you’re much better off using the VMSimulator to examine an image.

> On 18-09-2017, at 4:25 PM, Phil B <pbpublist@gmail.com> wrote:
>
> Using gdb to explore a running image?  Blog post or video format is great.  Most of what I've run across is related to the internals of the VM rather than debugging an image.  My gdb skills are pretty rusty plus I suspect that not knowing all of the helper functions available in the VM (and how to best use them in a debugging workflow) is slowing me down.


tim
--
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim
"Bother" said Pooh, as his rucksack opened whilst skydiving