def categorize_refs(self, usage_set, level=0, detail=None): priv_type = caching_lookup_type('GdkImagePrivateX11').pointer() priv_data = WrappedPointer(self._gdbval['windowing_data'].cast(priv_type)) usage_set.set_addr_category(priv_data.as_address(), Category('GType', 'GdkImagePrivateX11', ''), level=level+1, debug=True) ximage = WrappedPointer(priv_data.field('ximage')) dims = '%sw x %sh x %sbpp' % (ximage.field('width'), ximage.field('height'), ximage.field('depth')) usage_set.set_addr_category(ximage.as_address(), Category('X11', 'Image', dims), level=level+2, debug=True) usage_set.set_addr_category(int(ximage.field('data')), Category('X11', 'Image data', dims), level=level+2, debug=True)
def categorize_refs(self, usage_set, level=0, detail=None): priv_type = caching_lookup_type('GdkImagePrivateX11').pointer() priv_data = WrappedPointer( self._gdbval['windowing_data'].cast(priv_type)) usage_set.set_addr_category(priv_data.as_address(), Category('GType', 'GdkImagePrivateX11', ''), level=level + 1, debug=True) ximage = WrappedPointer(priv_data.field('ximage')) dims = '%sw x %sh x %sbpp' % (ximage.field('width'), ximage.field('height'), ximage.field('depth')) usage_set.set_addr_category(ximage.as_address(), Category('X11', 'Image', dims), level=level + 2, debug=True) usage_set.set_addr_category(int(ximage.field('data')), Category('X11', 'Image data', dims), level=level + 2, debug=True)
def categorize_refs(self, usage_set, level=0, detail=None): # This gives us access to the freetype library: FT_Library = WrappedPointer(self._gdbval['library']) # This is actually a "struct FT_LibraryRec_", in FreeType's # include/freetype/internal/ftobjs.h # print FT_Library._gdbval.dereference() usage_set.set_addr_category(FT_Library.as_address(), Category('FreeType', 'Library', ''), level=level+1, debug=True) usage_set.set_addr_category(int(FT_Library.field('raster_pool')), Category('FreeType', 'raster_pool', ''), level=level+2, debug=True)
def categorize_refs(self, usage_set, level=0, detail=None): # This gives us access to the freetype library: FT_Library = WrappedPointer(self._gdbval['library']) # This is actually a "struct FT_LibraryRec_", in FreeType's # include/freetype/internal/ftobjs.h # print FT_Library._gdbval.dereference() usage_set.set_addr_category(FT_Library.as_address(), Category('FreeType', 'Library', ''), level=level + 1, debug=True) usage_set.set_addr_category(int(FT_Library.field('raster_pool')), Category('FreeType', 'raster_pool', ''), level=level + 2, debug=True)