aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/jvm.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-08-29 17:53:28 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-08-29 17:53:28 +0000
commit3308c46e47a0b17d37b4c29a130e6519c424a737 (patch)
tree538202560a3a2f376b6fb55ee3b836b195f01e73 /libjava/include/jvm.h
parentce4e997039ab374d5d1719b02aae3ded0a2a8ec4 (diff)
downloadgcc-3308c46e47a0b17d37b4c29a130e6519c424a737.zip
gcc-3308c46e47a0b17d37b4c29a130e6519c424a737.tar.gz
gcc-3308c46e47a0b17d37b4c29a130e6519c424a737.tar.bz2
jvm.h (struct _Jv_frame_info): New structure.
* include/jvm.h (struct _Jv_frame_info): New structure. * gnu/gcj/runtime/natNameFinder.cc: Include StringBuffer.h, java-interp.h. (lookupInterp): New method. (getAddrAsString): Use _Jv_frame_info. (dladdrLookup): Likewise. * gnu/gcj/runtime/NameFinder.java (lookup): Try to look up interpreted frame. (lookupInterp): Declare. * java/lang/natVMThrowable.cc: Include Thread.h, java-interp.h. (fillInStackTrace): Collect information on interpreted frames. Use _Jv_frame_info. * interpret.cc: Include Thread.h. (run): Create and push _Jv_MethodChain object. (_Jv_EndOfInterpreter): New global. * java/lang/Thread.java (interp_frame): New field. * include/java-interp.h (struct _Jv_MethodChain): New structure. Include NameFinder.h. From-SVN: r56657
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r--libjava/include/jvm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index fc3a7f7..e02901d 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -111,6 +111,20 @@ union _Jv_word2
jdouble d;
};
+// An instance of this type is used to represent a single frame in a
+// backtrace. If the interpreter has been built, we also include
+// information about the interpreted method.
+struct _Jv_frame_info
+{
+ // PC value.
+ void *addr;
+#ifdef INTERPRETER
+ // Actually a _Jv_InterpMethod, but we don't want to include
+ // java-interp.h everywhere.
+ void *interp;
+#endif // INTERPRETER
+};
+
/* Extract a character from a Java-style Utf8 string.
* PTR points to the current character.
* LIMIT points to the end of the Utf8 string.