diff options
author | Keith Seitz <keiths@redhat.com> | 2006-10-28 02:15:12 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2006-10-28 02:15:12 +0000 |
commit | f356a436f04c20db31d307e2e31e4dab21d0543b (patch) | |
tree | f282f5ddea71f48497a4039392fed5ec28964f5a /libjava/include | |
parent | 62baeb4f013e6f0a682f043dbd8720a558dec462 (diff) | |
download | gcc-f356a436f04c20db31d307e2e31e4dab21d0543b.zip gcc-f356a436f04c20db31d307e2e31e4dab21d0543b.tar.gz gcc-f356a436f04c20db31d307e2e31e4dab21d0543b.tar.bz2 |
java-stack.h (ncodeMap): Declare.
* 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.
From-SVN: r118100
Diffstat (limited to 'libjava/include')
-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 f720951..b9cf09a 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. |