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

Public Member Functions

def __init__ (self, name, value)
 
def __lt__ (self, other)
 

Public Attributes

 name
 
 value
 
 short_name
 

Detailed Description

A class that allows us to store a flag name, its short name,
and its value.

In the GDB sources, struct type has a component called instance_flags
in which the value is the addition of various flags.  These flags are
defined by the enumerates type_instance_flag_value.  This class helps us
recreate a list with all these flags that is easy to manipulate and sort.
Because all flag names start with TYPE_INSTANCE_FLAG_, a short_name
attribute is provided that strips this prefix.

ATTRIBUTES
  name:  The enumeration name (eg: "TYPE_INSTANCE_FLAG_CONST").
  value: The associated value.
  short_name: The enumeration name, with the suffix stripped.

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

Constructor & Destructor Documentation

◆ __init__()

def gdb-gdb.TypeFlag.__init__ (   self,
  name,
  value 
)

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

Member Function Documentation

◆ __lt__()

def gdb-gdb.TypeFlag.__lt__ (   self,
  other 
)

Member Data Documentation

◆ name

gdb-gdb.TypeFlag.name

◆ short_name

gdb-gdb.TypeFlag.short_name

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

◆ value

gdb-gdb.TypeFlag.value

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