ajay662
5th March 2007 16:36 UTC
nsSCM::stop empties out my stack
I am using Dumpstate::debug to print stack before and after the nsSCM::stop call. I push 3 variables ($0, $1, $2) on stack before calling nsSCM::stop. After call those variables are no longer on the stack. Am I doing something wrong?
Dumpstate::debug <-- I can see 3 variables on stack
nsSCM::Stop $0
pop $1
Dumpstate::debug <-- stack empty ??
kichik
5th March 2007 17:18 UTC
That is its designed behavior for whatever reason. It calls clear_stack() before pushing the result on the stack. You can recompile it without clear_stack() or use another one of the available plug-ins.
ajay662
5th March 2007 17:34 UTC
Thanks for your quick reply. Can you clarify if this is the case only with nsSCM::stop call or all nsSCM calls?
kichik
5th March 2007 17:38 UTC
All nsSCM calls.