jvmti-int.h (JVMTI): Declare member "enabled".
* include/jvmti-int.h (JVMTI): Declare member "enabled". * jvmti.cc (JVMTI): Add member "enabled". (_Jv_GetJVMTIEnv): Mark JVMTI enabled. * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled instead of gnu::classpath::jdwp::Jdwp::isDebugging. (_Jv_CompileMethod): If JVMTI is enabled, use run_debug instead of run to compile the method. * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step notification. From-SVN: r121442
This commit is contained in:
parent
f6671c9376
commit
c6923d93eb
4 changed files with 70 additions and 18 deletions
|
@ -44,6 +44,10 @@ static void check_enabled_event (jvmtiEvent);
|
|||
|
||||
namespace JVMTI
|
||||
{
|
||||
// Is JVMTI enabled? (i.e., any jvmtiEnv created?)
|
||||
bool enabled;
|
||||
|
||||
// Event notifications
|
||||
bool VMInit = false;
|
||||
bool VMDeath = false;
|
||||
bool ThreadStart = false;
|
||||
|
@ -1754,6 +1758,10 @@ _Jv_GetJVMTIEnv (void)
|
|||
}
|
||||
}
|
||||
|
||||
/* Mark JVMTI active. This is used to force the interpreter
|
||||
to use either debugging or non-debugging code. Once JVMTI
|
||||
has been enabled, the non-debug interpreter cannot be used. */
|
||||
JVMTI::enabled = true;
|
||||
return env;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue