I found a good article for how to check the variable value with otSpot Serviceability Agent, however I still have question.
Change Variable Value in JVM with GDB
"The local variable information is reliable for interpreted methods, but not always for compiled methods. However, compiled methods will have an extra line with an address of the code, so you can disassemble and inspect it in gdb"
So why is this way of checking the local variable information not always reliable for compiled methods? And how would I know if the un-reliable situation happens? If this situation happened, how would I disassemble and inspect it in gdb for the Java jitted methods?
As I know GDB can only display native C/C++ methods. It would be a great if there was an example for demoing how to check the local variable information by disassembling and inspect it in gdb for the Java jitted methods when the un-reliable situation happens.