Loading... (original) (raw)

Some customers of dbx use the low level bytecode stepping functionality
available to step through the bytecodes and debug their code. As
a part of this exercise they would like to see a dump of the
current java operand stack.
The hotspot VM does not implement or document these functions which
are present in the jvmdi.h file.
jvmdiError (JNICALL *GetOperandStack)
(jframeID frame, jint *operandStackSizePtr,
JVMDI_operand_stack_element **operandStackPtr);
jvmdiError (JNICALL *SetOperandStack)
(jframeID frame, jint operandStackSize,
JVMDI_operand_stack_element *operandStack);
Implementing these in the VM will help dbx implement a command to dump
the current java stack for users who do bytecode level debugging.

  1. getOpStack_1.patch
    19 kB
    2015-04-28 14:27
  2. getOpStack.patch
    22 kB
    2014-03-10 20:49

duplicates

Enhancement - null JDK-4641613 JVMDI spec: Would like the function GetOperandStack in jvmdi to be implemented

Enhancement - null JDK-4949021 RFE: provide interface to access the JVM operand stack

relates to

Enhancement - null JDK-6430785 JDI/JDWP Spec: Add ability to get/set the JVM operand stack