|
GDB (xrefs)
|
Public Member Functions | |
| def | __init__ (self, name, value) |
| def | __cmp__ (self, other) |
Public Attributes | |
| name | |
| value | |
| short_name | |
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 21 of file gdb-gdb.py.
| def gdb-gdb.TypeFlag.__init__ | ( | self, | |
| name, | |||
| value | |||
| ) |
Definition at line 37 of file gdb-gdb.py.
| def gdb-gdb.TypeFlag.__cmp__ | ( | self, | |
| other | |||
| ) |
Sort by value order.
Definition at line 41 of file gdb-gdb.py.
References gdb-gdb.TypeFlag.value, gdb.command.prompt._ExtendedPrompt.value, dwarf_expr_piece.value, addrmap_transition.value, arm_mapping_symbol.value, dwarf_stack_value.value, frame_info.value, xmethod_worker.value, f77_boolean_val.value, and token_and_value.value.
| gdb-gdb.TypeFlag.name |
Definition at line 38 of file gdb-gdb.py.
| gdb-gdb.TypeFlag.short_name |
Definition at line 40 of file gdb-gdb.py.
| gdb-gdb.TypeFlag.value |
Definition at line 39 of file gdb-gdb.py.
Referenced by gdb-gdb.TypeFlag.__cmp__().
1.8.14