On Sun, Nov 17, 2002 at 05:43:06PM +0000, Jonathan Chin wrote:
> 
> Hello,
> 
>       I'd like to be able to see the perl stack from a C routine,
>       which is in turn called from an XSUB. I'm obviously going about
>       this the wrong way, but I'd appreciate it if someone could point
>       out exactly how.

I think you might be better to ask on the perl-xs list. (details at
http://lists.perl.org/showlist.cgi?name=perl-xs )

I believe very few people here confidently know answers to internals
questions like these:

>       I can quite happily use PUSHMARK etc to set up a new stack
>       context before calling peekstack(), but then it can't see the
>       things that were passed to method(), which is what I'm after. Is
>       there some particular macro I should be using to do this? 
> 
>       Another (vaguely related) question:- as far as I can tell from
>       pp.h and friends, "dXSARGS;" will actually change some internal
>       state, by calling POPMARK. Is this the case?

I certainly don't, and I'm one of the more active core perl hackers.

Nicholas Clark

Reply via email to