This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] [PATCH] Provide the ability to write the frame unwinder in Python
- From: Alexander Smundak <asmundak at google dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: Doug Evans <dje at google dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 2 Mar 2015 16:49:30 -0800
- Subject: Re: [RFC] [PATCH] Provide the ability to write the frame unwinder in Python
- Authentication-results: sourceware.org; auth=none
- References: <CAHQ51u7NUoQ8w9c5mc-Eiz05b1Nub6zqj_Ne7vfgWb5EP9_X8w at mail dot gmail dot com> <21714 dot 40641 dot 510825 dot 30998 at ruffy2 dot mtv dot corp dot google dot com> <CAHQ51u5_ViLaEmv9e43R-wzuWw8dwNkb-2XgCRy5ELQq5FUAWg at mail dot gmail dot com> <54E71694 dot 1080304 at redhat dot com> <CAHQ51u75+9HYAVJXYNQa0gTnQtYKEgmSkyAhAPYp-y4HGtXssg at mail dot gmail dot com>
On Wed, Feb 25, 2015 at 7:09 PM, Alexander Smundak <asmundak@google.com> wrote:
>>>> Is it possible to see the code, and example usage, of a real-life use-case
>>>> of this? That will help folks not familiar with this project to understand
>>>> the problem we are trying to solve.
>>
>> I agree.
>>
>>> The full implementation of the combined sniffer/frame filter for OpenJDK
>>> is about 2500 lines and will eventually become part of it. I am waiting for
>>> this GDB patch to be reviewed before I can present it to be reviewed by
>>> the JDK community :-)
> I am going to publish it on openjdk.java.net site once the site's admin updates
> my credentials.
I've posted it at the OpenJDK revisions site:
http://cr.openjdk.java.net/~asmundak/gdbunwind/hotspot/webrev.00/agent/src/os/linux/gdb/libjvm.so-gdb.py.html
Please bear in mind it's very preliminary (see TODO) and it does not reflect
the most recent proposal to have sniffer return UnwindInfo object instead of
a tuple containing registers and frame ID.