java-interp.h (_Jv_InterpClass): Declare friend function _Jv_GetInterpClassSourceFile.

* include/java-interp.h (_Jv_InterpClass): Declare
        friend function _Jv_GetInterpClassSourceFile.
        * java/lang/Class.h (Class): Likewise.
        * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
        New function.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (getSourceFile): Implement.

From-SVN: r122882
This commit is contained in:
Keith Seitz
2007-03-13 19:27:13 +00:00
committed by Keith Seitz
parent 03943c05c1
commit bde6c7a990
5 changed files with 27 additions and 2 deletions
+12
View File
@@ -2064,3 +2064,15 @@ _Jv_GetClassState (jclass klass)
return klass->state;
}
jstring
_Jv_GetInterpClassSourceFile (jclass klass)
{
if (_Jv_IsInterpretedClass (klass))
{
_Jv_InterpClass *iclass =
reinterpret_cast<_Jv_InterpClass *> (klass->aux_info);
return iclass->source_file_name;
}
return NULL;
}