[webkit-dev] Loader debug viewing in gdb

Adam Barth abarth at webkit.org
Tue Aug 2 14:59:22 PDT 2011

Here's a diagram of the relation between these objects that I drew a while back:


It might not be 100% accurate anymore.


On Tue, Aug 2, 2011 at 2:53 PM, Scott Graham <scottmg at chromium.org> wrote:
> Hi,
> I've been trying to debug some lifetime issues in Loader-related code. I was
> finding it quite challenging to visualize how the objects connect and
> interrelate, especially as links change over time. To help a bit, I wrote a
> small python script for gdb that displays a graph of related
> objects. https://bugs.webkit.org/show_bug.cgi?id=65574
> The dump/view part of it is written somewhat generically and takes a map of
> types to operate on. It allows for collapsing logically connected objects
> into one graph node in the diagram to avoid huge sprawl. (see attached
> diagram where e.g. m_ptr RefPtrs are collapsed into their containing
> object).
> I've only defined the type map for a viewer for Loader-related objects
> ("viewloadergraph" in gdb) but it should be obvious how to add a similar
> command for other subsystems. Perhaps it will be useful to someone, or
> someone'll have an idea to make it more useful.
> scott
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

More information about the webkit-dev mailing list