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

Provide GDB functions for debugging JVM coredump

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: