GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gdb-gdb.IntrusiveListPrinter Class Reference

Public Member Functions

 __init__ (self, val)
 
 display_hint (self)
 
 to_string (self)
 
 children (self)
 

Protected Member Functions

 _uses_member_node (self)
 
 _as_node_ptr (self, elem_ptr)
 
 _children_generator (self)
 

Protected Attributes

 _val
 
 _item_type
 
 _node_ptr_type
 
 _conv_type
 
 _member_node_offset
 
 _char_ptr_type
 

Detailed Description

Print a struct intrusive_list.

Definition at line 284 of file gdb-gdb.py.

Constructor & Destructor Documentation

◆ __init__()

gdb-gdb.IntrusiveListPrinter.__init__ ( self,
val )

Definition at line 287 of file gdb-gdb.py.

Member Function Documentation

◆ _as_node_ptr()

gdb-gdb.IntrusiveListPrinter._as_node_ptr ( self,
elem_ptr )
protected
Given ELEM_PTR, a pointer to a list element, return a pointer to the
corresponding intrusive_list_node.

Definition at line 339 of file gdb-gdb.py.

References gdb-gdb.IntrusiveListPrinter._char_ptr_type, gdb-gdb.IntrusiveListPrinter._member_node_offset, gdb-gdb.IntrusiveListPrinter._node_ptr_type, and gdb-gdb.IntrusiveListPrinter._uses_member_node().

Referenced by gdb-gdb.IntrusiveListPrinter._children_generator().

◆ _children_generator()

gdb-gdb.IntrusiveListPrinter._children_generator ( self)
protected

◆ _uses_member_node()

gdb-gdb.IntrusiveListPrinter._uses_member_node ( self)
protected
Return True if the list items use a node as a member, False if
they use a node as a base class.

Definition at line 314 of file gdb-gdb.py.

References gdb-gdb.IntrusiveListPrinter._conv_type.

Referenced by gdb-gdb.IntrusiveListPrinter._as_node_ptr(), and gdb-gdb.IntrusiveListPrinter.to_string().

◆ children()

gdb-gdb.IntrusiveListPrinter.children ( self)

◆ display_hint()

gdb-gdb.IntrusiveListPrinter.display_hint ( self)

Definition at line 311 of file gdb-gdb.py.

◆ to_string()

gdb-gdb.IntrusiveListPrinter.to_string ( self)

Member Data Documentation

◆ _char_ptr_type

gdb-gdb.IntrusiveListPrinter._char_ptr_type
protected

Definition at line 309 of file gdb-gdb.py.

Referenced by gdb-gdb.IntrusiveListPrinter._as_node_ptr().

◆ _conv_type

gdb-gdb.IntrusiveListPrinter._conv_type
protected

◆ _item_type

gdb-gdb.IntrusiveListPrinter._item_type
protected

Definition at line 291 of file gdb-gdb.py.

Referenced by gdb-gdb.IntrusiveListPrinter.to_string().

◆ _member_node_offset

gdb-gdb.IntrusiveListPrinter._member_node_offset
protected

Definition at line 305 of file gdb-gdb.py.

Referenced by gdb-gdb.IntrusiveListPrinter._as_node_ptr().

◆ _node_ptr_type

gdb-gdb.IntrusiveListPrinter._node_ptr_type
protected

Definition at line 292 of file gdb-gdb.py.

Referenced by gdb-gdb.IntrusiveListPrinter._as_node_ptr().

◆ _val

gdb-gdb.IntrusiveListPrinter._val
protected

The documentation for this class was generated from the following file: