[Vm-dev]
OSProcessPlugin: VMConstruction-Plugins-OSProcessPlugin-dtl.32.mcz
squeak-dev-noreply at lists.squeakfoundation.org
squeak-dev-noreply at lists.squeakfoundation.org
Sat Jan 21 16:43:24 UTC 2012
Dave Lewis uploaded a new version of VMConstruction-Plugins-OSProcessPlugin to project OSProcessPlugin:
http://www.squeaksource.com/OSProcessPlugin/VMConstruction-Plugins-OSProcessPlugin-dtl.32.mcz
==================== Summary ====================
Name: VMConstruction-Plugins-OSProcessPlugin-dtl.32
Author: dtl
Time: 21 January 2012, 10:43:22 am
UUID: 6c9726ae-cdfb-4a54-8ada-48fb8f6c4da8
Ancestors: VMConstruction-Plugins-OSProcessPlugin-dtl.31
OSProcessPlugin 4.4.8
Fix primitivePrintAllStacksOnSignal. Works on both Cog and Interpreter VM, but may have linker issues on Mac OS X (see below).
To set signal hander to print stacks on receipt of SIGUSR1 without exiting the VM:
"OSProcess accessor setPrintAllStacksOnSigUsr1"
To restore to default handler (which may exit the VM):
"OSProcess accessor clearPrintAllStacksOnSigUsr1"
May be used with any signal, i.e. if SIGUSR1 is used by a multimedia plugin, then SIGQUIT might be used to print stacks. To set handler:
"OSProcess accessor primPrintAllStacksOnSignal: OSProcess accessor primSigQuitNumber"
To restore to original SIGQUIT handler (i.e. exit the VM):
"OSProcess accessor primPrintAllStacksOnSignal: nil"
Note for building on OS X: The printAllStacks() function address is dynamically loaded from the interpreter module. It may be necessary to declare this in os_exports[] in osExports.c for this to work on OS X.
More information about the Vm-dev
mailing list