[RFA] "Rewrite" GetFrameCount
Keith Seitz
keiths@redhat.com
Thu Feb 8 00:56:00 GMT 2007
Hi,
The attach patch adds the new function _Jv_Frame::depth(), which returns
the depth of the stack at this frame. It's a little hoaky, but it should
be sufficient, since we end up getting the top of the stack from the
thread anyway. No need to add more storage to save this info off.
It also contains changes to _Jv_JVMTI_GetFrame to use this function.
This patch should effectively be a nop in functionality, except that I
can now call _Jv_Frame::depth without having to call a JVMTI function,
which I'm going to need when I submit patches related to single stepping.
Ok?
Keith
ChangeLog
2007-02-07 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (_Jv_Frame::depth):
New function.
* jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frame-depth.patch
Type: text/x-patch
Size: 1244 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070208/31eaa8ce/attachment.bin>
More information about the Java-patches
mailing list