diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-28 02:15:12 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-28 02:15:12 +0000 |
commit | 1c243862a860de6b5f737776486d39b1b01d2007 (patch) | |
tree | f282f5ddea71f48497a4039392fed5ec28964f5a /libjava/include/java-stack.h | |
parent | c4f8e01fdac5dd7343fab916f393f73220538a6c (diff) | |
download | gcc-1c243862a860de6b5f737776486d39b1b01d2007.tar.gz |
* include/java-stack.h (ncodeMap): Declare.
(_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
* java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
* java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
function.
* stacktrace.cc (ncodeMap): Redefine from file global to global
for class _Jv_StackTrace.
(_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
so that _Jv_GetMethodDeclaringClass can find them all.
(_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
* jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
(_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118100 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/java-stack.h')
-rw-r--r-- | libjava/include/java-stack.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/include/java-stack.h b/libjava/include/java-stack.h index f7209512b2c..b9cf09a551c 100644 --- a/libjava/include/java-stack.h +++ b/libjava/include/java-stack.h @@ -23,6 +23,7 @@ details. */ #include <java/lang/StackTraceElement.h> #include <java/lang/Throwable.h> #include <java/lang/Thread.h> +#include <java/util/IdentityHashMap.h> #include <gnu/gcj/runtime/NameFinder.h> @@ -102,6 +103,7 @@ private: int length; _Jv_StackFrame frames[]; + static java::util::IdentityHashMap *ncodeMap; static void UpdateNCodeMap (); static jclass ClassForFrame (_Jv_StackFrame *frame); static void FillInFrameInfo (_Jv_StackFrame *frame); @@ -126,7 +128,8 @@ public: static JArray<jclass> *GetClassContext (jclass checkClass); static ClassLoader *GetFirstNonSystemClassLoader (void); static jobjectArray GetAccessControlStack (); - + + friend jclass _Jv_GetMethodDeclaringClass (jmethodID); }; // Information about a given address. |