Accessing the Interpreters variables from a Plugin

Bryce Kampjes bryce at kampjes.demon.co.uk
Sat Nov 15 14:18:35 UTC 2003


Is there an easy portable way to access the interpreters variables
from a plugin? The reason is so I can move more of Exupery's code
from the interpreter into a plugin.

What I'm currently doing is writing little methods in the interpreter
to deal with the interpreters variables then calling them from the
plugin.

The problem seems to be due to dynamic linking, gdb can access the
variables and read them successfully but the code segmentation faults
when run. I'm working on Linux using gcc 2.95.4.


One of the reasons to do this is to write tests for the VM's
behaviour. The current test needs to scan the rootTable to check that
setting an instance variable of an old object with a new object marks
the old object as a root. Just executing code to make the environment
crash is a little too crude.

Bryce



More information about the Squeak-dev mailing list