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

Refactor native stack printing from vmError.cpp to debug.cpp to make it available in gdb as well

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b34
    • Not verified

        In the hs_err files we have a nice mixed stack trace which contains both, Java and native frames.
        It would be nice if we could make this functionality available from within gdb during debugging sessions.

        This can be easily achieved by refactoring the corresponding code from VMError::report() in vmError.cpp into it own method in debug.cpp.

        With another helper function which creates a frame object, we can then get a mixed stack trace in gdb as follows:

        Linux/amd64
        call pns(make_frame($sp, $rbp, $pc))

        Linux/i586
        call pns(make_frame($sp, $ebp, $pc))

        Linux/ppc64
        call pns(make_frame($sp, $pc))

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: