[RFA] JMTI Exception Events
Kyle Galloway
kgallowa@redhat.com
Wed Feb 14 21:48:00 GMT 2007
I've had one or another variation of this lying around for some time,
but I have finalized it. This patch adds notification of JVMTI
Exception Events. In the catch section of the debug interpreter, it
grabs information about the exception, then creates a new ExceptionEvent
object. This object handles checking if the exception has already
generated an event, as well as whether or not the exception will be
caught. It then calls it's native side to dispatch the method.
In order to clean up the code in the catch block of the interpreter, I
added check_handler, which does exactly what was done before, but makes
things alot cleaner and allows me to call check_handler to see if an
exception will be caught further up the stack.
Before I commit this, I wanted to clear up which files I should commit.
Do I need to include more than sources.am and Makefile.am? For
example, should the changed Makefile.ins go in as well?
Questions/comments/concerns?
Thanks,
Kyle
ChangeLog
2007-02-14 Kyle Galloway <kgallowa@redhat.com>
* interpret.cc (_Jv_InterpMethod::check_handler): New method.
* interpret-run.cc: Change the catch section to report exception
events and to use the new check_handler method.
* include/java-interp.h (_Jv_InterpMethod): Add check_handler.
* gnu/gcj/jvmti/ExceptionEvent.java: New file.
* gnu/gcj/jvmti/ExceptionEvent.h: New file.
* gnu/gcj/jvmti/natExceptionEvent.cc: New file.
* libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
file.
* sources.am: Added ExceptionEvent.java.
* Makefile.am: Added natExceptionEvent.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exceptions-jvmti.patch
Type: text/x-patch
Size: 12603 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070214/870b3ed3/attachment.bin>
More information about the Java-patches
mailing list