Relates :
|
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))