[kaffe] Printing log
Dalibor Topic
robilad at kaffe.org
Mon Oct 11 14:06:28 PDT 2004
Pinaki Mukherjee wrote:
> Hi,
Hi Pinaki,
> I want to print some log data after the virtual machine execution is over (that is, after the function runVirtualMachine in .../kaffe/kaffevm/intrp/machine.c is invoked for the last time). I tried putting the print statement at the end of the function main or main2 in the file .../kaffe/kaffe/main.c before they return, but neither seem to work. Inside the function main2, the function DestroyJavaVM is being called. This function is calling runVirtualMachine, but I have no clue how and when it is terminating. So I don't know where exactly to put the print statement.
>
> Where do I put a print statement in the code to get the complete log at the very end of execution?
You could try using the standard C function atexit to make your
log-printing function called right before kaffe exits. I hope that works :)
cheers,
dalibor topic
More information about the kaffe
mailing list