[kaffe] tracing method calls

Jim Pick jim at kaffe.org
Wed Nov 27 04:03:13 PST 2002


On Wed, 2002-11-27 at 09:19, Benoit Hubert wrote:
> Hello
> 
> I'm working on a modified version of Kaffe, which uses
> our own thread and socket subsystems. I use a test program
> which hangs at some point, but I can't determine precisely where.
> I think that in this situation, it would be helpful if I could trace
> each method call made by the program. Before that, I tried to use gdb,
> but as I use an alternate threading system, when I interrupt the
> program under gdb, the stack I can examine is that of the threads
> scheduler.
> 
> Can anyone provide me with some hints, regarding how I could modify
> the JVM in order to make it trace each method call ?
> 
> Thanks a lot
> 
> Benoit

I think the PocketLinux version of kaffe had a working -verbosecall
switch (it doesn't work in the kaffe.org version).  I'm not sure, but
I think I was told that it worked by JIT'ing each method, and but not
storing the result (so it ran very slowly).

Cheers,

 - Jim






More information about the kaffe mailing list