This is the mail archive of the
mailing list for the GDB project.
Re: Hotspot JVM GDBJIT plugin
>>>>> "Kaushik" == Kaushik Srenevasan <email@example.com> writes:
Kaushik> I've been working on a Hotspot JVM JIT plugin for GDB
Kaushik> I'm writing to see if there is any interest in pulling the
Kaushik> changes  I've had to make to GDB, to get this to work.
Sure. Just send individual patches following the contribution
Kaushik> The first of these changes  is a simple fix to a crash while
Kaushik> trying to display the return type of a JIT frame (say on
Kaushik> The second (frame based symbol handler) is a feature added to
Kaushik> help GDB understand frames created by Hotspot's "template"
Kaushik> This adds an additional callback that the reader may choose to
Kaushik> implement to return the name (file path or line number) of the
Kaushik> function executing in the frame in question.
Phil has been working on a related feature in gdb, called "frame
filters". Frame filters let you write Python code to modify frames as
they are being displayed; you can change nearly any aspect of a frame,
and even insert and delete frames. The primary use case for this
feature is displaying better stack traces in interpreters.
So, you might consider just waiting for this and writing your frame
logic in Python.
If you'd rather press on, that is fine too.