[Vm-dev] OSProcessPlugin: VMConstruction-Plugins-OSProcessPlugin-dtl.25.mcz

David T. Lewis lewis at mail.msen.com
Mon Jan 3 20:51:48 UTC 2011


On Mon, Jan 03, 2011 at 10:34:55AM -0800, John M McIntosh wrote:
> On 2011-01-02, at 10:51 PM, Igor Stasenko wrote:
> > On 3 January 2011 05:01, David T. Lewis <lewis at mail.msen.com> wrote:
> >> On Fri, Dec 31, 2010 at 04:25:49PM +0100, Igor Stasenko wrote:
> >> 
> >>> after that there will be only argc/argv & printStack will be left to be fixed.
> >>> 
> >> 
> >> I'm not sure how to handle those. I'm sure John had this working for
> >> external OSPP on some of the OS X VMs. Linking may work differently
> >> on Mac, but for the unix VM it was just a matter of declaring the
> >> variables in main():
> >> 
> >>    int main(int argc, char **argv, char **envp)
> >>    {
> >>      /* Make parameters global for access from plugins */
> >>      argCnt= argc;
> >>      argVec= argv;
> >>      envVec= envp;
> >>      ...
> >>    }
> >> 
> 
> os-x is unix, so it's exactly the same, the main() routine created is made by xcode to contain the cocoa plumbing, I never 
> added the magic lines above
>

Thanks John, I was hoping that might be the case :)

Dave
 


More information about the Vm-dev mailing list