diff options
author | Kyle Galloway <kgallowa@redhat.com> | 2007-04-23 17:30:29 +0000 |
---|---|---|
committer | Kyle Galloway <kgallowa@gcc.gnu.org> | 2007-04-23 17:30:29 +0000 |
commit | d76473618c43c7a073359a300113fa5cf21fd999 (patch) | |
tree | 81048b7fa6e216d50f6149770c8a5fe429e8072d /libjava/jvmti.cc | |
parent | 34a7526e36dae962cea221b99fb4124b79895fce (diff) | |
download | gcc-d76473618c43c7a073359a300113fa5cf21fd999.zip gcc-d76473618c43c7a073359a300113fa5cf21fd999.tar.gz gcc-d76473618c43c7a073359a300113fa5cf21fd999.tar.bz2 |
java-interp.h (_Jv_InterpFrame): Add pointer to the interpreter PC.
2007-04-23 Kyle Galloway <kgallowa@redhat.com>
* include/java-interp.h (_Jv_InterpFrame): Add pointer to the
interpreter PC.
(<init>): Add a pointer to the interpreter PC as a parameter with
default value NULL.
(get_pc): New method.
* interpret-run.cc: If debugging, pass a pointer to the PC when
creating the stack frame.
* jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc
to get the PC.
From-SVN: r124076
Diffstat (limited to 'libjava/jvmti.cc')
-rw-r--r-- | libjava/jvmti.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/jvmti.cc b/libjava/jvmti.cc index 716e96a..c13bb5a 100644 --- a/libjava/jvmti.cc +++ b/libjava/jvmti.cc @@ -1245,7 +1245,7 @@ _Jv_JVMTI_GetStackTrace (MAYBE_UNUSED jvmtiEnv *env, jthread thread, = static_cast<_Jv_InterpMethod *> (frame->self); _Jv_InterpFrame *interp_frame = static_cast<_Jv_InterpFrame *> (frame); - frames[i].location = imeth->insn_index (interp_frame->pc); + frames[i].location = imeth->insn_index (interp_frame->get_pc ()); } else frames[i].location = -1; |