Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8275217

Provide GDB functions for debugging JVM coredump

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 18
    • hotspot
    • svc

      When JVM crashed unexpectedly, it could leave a coredump file for further debugging and diagnosis. We have to type many tedious instructions when debugging. For example, in order to get the name of InstanceKlass, we should:

      print (char*)((InstanceKlass*)0x123)->_name->_body

      We can predefine gdb functions to provide these functions, just like what src/hotspot/share/gc/z/zDebug.gdb did, which can facilitate debugging and problem diagnosis.

            yyang Yi Yang
            yyang Yi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: