jakarta-bcel-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@qis.net
Subject Re: adding a listener to the call stack
Date Fri, 16 Jul 2004 16:08:48 GMT
Quoting aldib <aldib@fuurou.org>:

> Hi,
> I’m new to BCEL and I was wondering if someone could help me with this.
> I’m looking for a way of monitoring the call stack. I would like somehow to
> register some kind of listener with stack that gets notified whenever the
> stack is changed.
> Does anybody know if it’s possible to use BCEL for this? Maybe instrumenting 
> the 
> Classloader?
> 
> Thanks
> 
> Alessandro

You could perhaps inject a try finally block around the code over every method.
Then add a notify the listener as the first statement in the try, and notify
again in the last of the finally. :)

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


Mime
View raw message