Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Scott Graham <scottmg <at> chromium.org>
Subject: Loader debug viewing in gdb
Newsgroups: gmane.os.opendarwin.webkit.devel
Date: Tuesday 2nd August 2011 21:53:01 UTC (over 5 years ago)
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
 
CD: 14ms