diff options
author | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-16 18:32:07 +0000 |
---|---|---|
committer | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-16 18:32:07 +0000 |
commit | ac0573396099038a4f16ed126e6bcfde004a6b70 (patch) | |
tree | 25c074e797a8dd7b18f07433e5fa8036c2a79334 /libjava/interpret-run.cc | |
parent | d2e5a74dc725985ce599d1c2b3a4307c4d38eef6 (diff) | |
download | gcc-ac0573396099038a4f16ed126e6bcfde004a6b70.tar.gz |
2007-02-16 Kyle Galloway <kgallowa@redhat.com>
* interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
variables to maintain type info.
* interpret-run.cc: Add local variable info to frame in the debug
interpreter.
* jvmti.cc (getLocalFrame): New method.
(_Jv_JVMTI_GetLocalObject): New method.
(_Jv_JVMTI_GetLocallInt): New method.
(_Jv_JVMTI_GetLocalFloat): New method.
(_Jv_JVMTI_GetLocalLong): New method.
(_Jv_JVMTI_GetLocalDouble): New method.
(_Jv_JVMTI_SetLocalObject): New method.
(_Jv_JVMTI_SetLocalInt): New method.
(_Jv_JVMTI_SetLocalFloat): New method.
(_Jv_JVMTI_SetLocalLong): New method.
(_Jv_JVMTI_SetLocalDouble): New method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/interpret-run.cc')
-rw-r--r-- | libjava/interpret-run.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/interpret-run.cc b/libjava/interpret-run.cc index b98092efb1a..9d37c19a3a7 100644 --- a/libjava/interpret-run.cc +++ b/libjava/interpret-run.cc @@ -27,6 +27,13 @@ details. */ _Jv_word locals[meth->max_locals]; +#ifdef DEBUG + frame_desc.locals = locals; + char locals_type[meth->max_locals]; + memset (locals_type, 'x', meth->max_locals); + frame_desc.locals_type = locals_type; +#endif + #define INSN_LABEL(op) &&insn_##op static const void *const insn_target[] = |