String arguments in kaffe
Harish Sankaran
harish at cs.sunysb.edu
Tue Aug 25 11:20:44 PDT 1998
Hi,
Before a method is actually executed ,I want to trap the string
arguments(if any) in the method in the JVM.
For eg. if there is a method in the class
g.drawstring("Welcome",10,20) I want to trap the string "Welcome" before
the method is actually executed.I tried printing the arguments in the
function "virtualMachine" in machine.c by printing
arg[0].v.tword,arg[1].tword etc.
The co-oridnates gets printed ok but for some reason I was not able to
print the string by giving arg[2].v.tstr.
Could anyone let me know as to how and where a string argument is stored?
Thanks
Harish
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Harish Sankaran
-----------------------------------------------------------------------------
Grad Stdnt. : Computer Science | Apt. Address:
State University of NewYork,Stony Brook | 752, Chapin Complex
New York - 11790 | Stony Brook
| New York -11790
Research Group: Experimental Computer | Ph: (516)-216-2388
Systems |
email:- harish at cs.sunysb.edu
homepage:- http://www.cs.sunysb.edu/~harish
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the kaffe
mailing list