libdebug.data.symbol_list
SymbolList
Bases: list
A list of symbols in the target process.
Source code in libdebug/data/symbol_list.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
__eq__(other)
__getitem__(key)
Returns the symbol with the specified name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
(str, int)
|
The name of the symbol to return, or the index of the symbol in the list. |
required |
Returns:
| Type | Description |
|---|---|
SymbolList[Symbol] | Symbol
|
Symbol | SymbolList[Symbol]: The symbol at the specified index, or the SymbolList of symbols with the specified name. |
Source code in libdebug/data/symbol_list.py
__hash__()
__init__(symbols, maps_source)
__repr__()
Returns the string representation of the SymbolDict without the default factory.
filter(value)
Filters the symbols according to the specified value.
If the value is an integer, it is treated as an address. If the value is a string, it is treated as a symbol name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int | str
|
The address or name of the symbol to find. |
required |
Returns:
| Type | Description |
|---|---|
SymbolList[Symbol]
|
SymbolList[Symbol]: The symbols matching the specified value. |