[kaffe] how to use fprintf to trace bytecode

Kiyo Inaba inaba at src.ricoh.co.jp
Wed Oct 1 23:30:03 PDT 2003


Hi Richard,

>   I would like to trace bytecode in kaffe. AFter search the mainling
>list, I try to use fprintf( ... ). But I insert fprintf( ... ) in
>RunVirtualMachine function. The error message always display, "internal
>error, or CLASSPATH" problem.

Well, if you just want to get bytecode trace use '-vmdebug MOREJIT' option
should be easier.

>   Btw, who can tell me how to read gmon.out file, after I run kaffe with
>--vmdebug support. It seem support debug, but I can not find how to read
>gmon.out file. Thanks!

The 'gmon.out' file is generated when you compile program with '-pg'
option for gcc. It may not have any direct relationship with '-vmdebug'
option of kaffe. And you can use it with gprof command.

Kiyo




More information about the kaffe mailing list