[Vm-dev] argCnt, argVec, engVec alternatives

Igor Stasenko siguctua at gmail.com
Wed Jan 5 19:18:15 UTC 2011


On 5 January 2011 19:30, Esteban Lorenzano <estebanlm at gmail.com> wrote:
>
> ok... removing call to printAllStack in plugin and adding initialization of argCnt, argVec and engVec (plus the changes made last week), UnixOSProcessPlugin, without AioPlugin, is running in Cocoa Cog VM :D
>

i can't believe that there is no way to get a command line other than
from main() function in unix.
utils, like 'ps ax' indicating that its possible :)

At least in windows , there is a GetCommandLine() for that.


> I would like to commit a OSProcessPlugin package with modifications... or well, maybe project owner can do this changes for me (I just removed primitivePrintAllStacksOnSignal, printAllStacksFunctionAddress and printAllStacksOnSignal).
>
> now... I will work on AioPlugin :P
>
> Cheers,
> Esteban
>
> pd: btw... CommandShell is really funny ;)
>
> El 05/01/2011, a las 3:08p.m., John M McIntosh escribió:
>
>>
>> Well these aren't vm variables they are the environment,  and pointer(s) to arguments passed to the executable at launch time via the command line.
>> it's all pure unix logic, nothing to do with the vm. You could of course have a fetch routine on the interpreter proxy to better hide the implementation details as you
>> already have an primitive to fetch the parms from the VM. Not sure about the environment variables I don't think there was an api to allow smalltalk code to get at those?
>>
>> On 2011-01-05, at 10:01 AM, Esteban Lorenzano wrote:
>>
>>>
>>> Hi,
>>> Ok, I'm trying to run the UnixOSProcessPlugin on Cocoa Cog VM (own version, still not updated with latest from Eliot). One of the things I need to solve is some references to argCnt, argVec, engVec in plugin implementation... I think it is not-good give a plugin access to vm parameters through globals...
>>> So, I wonder if there is an alternative to elegantly provide this...
>>>
>>> Cheers,
>>> Esteban
>>
>> --
>> ===========================================================================
>> John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:  squeaker68882
>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>> ===========================================================================
>>
>>
>>
>>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list