[kaffe] Debugging

Michael Franz mvfranz at gmail.com
Thu Nov 18 06:14:04 PST 2004


On Wed, 17 Nov 2004 23:13:55 -0800 (PST), Pinaki Mukherjee
<pinaki2003 at yahoo.com> wrote:
> 
> Hi, 
>   
> I modified kaffe.def for each instruction and want to test whether they are
> correct. I want to step through each JVM instruction that is executed in
> Kaffe. I think this consists of instructions for VM creation, the actual
> application execution and the VM destruction. How do I do this? 
>   
> I tried the following: 
> 1. First put a breakpoint in the function runVirtualMachine and then run.
> After the breakpoint is hit, it will run the instructions for VM creation
> until function main2 is hit (is that right?). But I do not have a list of
> the instructions executed for VM creation, so this is difficult. 
> 2. I put a breakpoint in main2 and ran upto this point. After that, I put a
> breakpoint in runVirtualMachine. I think after this point the VM will
> execute instructions from the actual application. But when I step inside
> kaffe.def, the first instruction executed (LDC1) is different from the first
> instruction in main (ALOAD_0). I don't understand why this is happening. 

How did you get it to step into the kaffe.def file?  I have been
trying to get that to work  without success.

>   
> Thank you. 
>   
> Pinaki
Michael




More information about the kaffe mailing list